Dynamic client registration API

If you are building a new application, and you want to use OneWelcome for authentication in a secure manner, you can use an OAuth2 client registered with OneWelcome, and use that for authentication.

How does it work?

Let's assume, you have a requirement to build a new application which should allow a user to manage his/her consents and view only access to the primary email and primary phone number. Should not be allowed to see other information such as group membership and insurance policy.

In oder to do this, you have to register an oauth2 client, and pass some informations, such as the location of your application, the application name, authentication methods, etc., and to fully meet the requirements, you'll have to add the read/write consent related scopes and read scopes for primary email and primary phone number.

Once the oauth2 client is created, you can use it in your application to authenticate against OneWelcome.

What API do you need?

In order to register a new client, you have use Dynamic client registration API. An example of a client which will fulfil the requirements from above, would look like below:

CURL
Copy

Example of response:

JSON
Copy

Please note that in order to call this API, you have to have an oauth2 access token with the scope dynamic-client-registration. For information about how you can issue an access token, please consult OAuth 2.0 and OpenID Connect API documentation.

Please note that the default code challenge method is "S256" - see Proof Key for Code Exchange (PKCE)

For a detailed explanation of each of the request and response attributes, please consult the Dynamic Client Registration API specification.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated