Web service API

How to use PageSeeder's Web service API

oauth clients

/oauth/members/{member}/clients [POST]

com.pageseeder.oauth.CreateClient

Description

Create an OAuth client.

Parameters

NameDescriptionRequiredTypeDefault value
nameThe name of the client (informational).yesstring
access-token-max-ageThe max age of the access tokens in seconds.nolong1 hour
client-secretThe client secret.nostring[random string]
client-uriThe URL for the client application (informational).nostring
descriptionThe description of this client (informational).nostring
grant-typeThe grant type allowed for this client:

[authorization_code|implicit|password|client_credentials]

nostringauthorization_code
identifierThe OAuth 2.0 client ID (admin only).nostring[random string]
redirect-uriThe redirection URI specific to this client.nourl
refresh-token-max-ageThe max age of the refresh tokens in seconds.nolong30 days
scopeA space separated list of scopes allow for this client e.g. openid
profile email.
nostring

Permission

Permissions requirements to be updated.

Response

<client-registration>
    <client id="1"
            identifier="2aa92c5a79baf3fe"
            requires-consent="false"
            confidential="false"
            name="My app"
            grant-type="authorization_code"
            description="My example app"
            client-uri="http://example.org"
            scope="openid profile email"
            access-token-max-age="7200"
            refresh-token-max-age="0">
        <member id="45" ...>
            <fullname>John Smith</fullname>
        </member>
    </client>
</client-registration>
 

Error Handling

No specific errors expected for this generator.

Created on , last edited on