Authentification

Authentication

This API uses OAuth 2.0 for secure authorization. Access requires generating a token with a username and password.

Steps to Authenticate

1. Prerequisites

  1. A valid PeopleSpheres account with a username and password.

  2. The Keycloak Client ID : web-app client

  3. The Keycloak token endpoint URL for your environment.

Token endpoint format https://<keycloak-host>/auth/realms/Internal-idp/protocol/openid-connect/token

For preproduction : https://sso-preproduction.monportailrh.com/ For production : https://sso-monportailrh.com/

2. Generate an access token

Use the token endpoint to exchange your credentials for an access token. Send the parameters as application/x-www-form-urlencoded.

Required parameters

Name
Value
Notes

grant_type

password

Tells Keycloak to use the username and password flow

client_id

web-app

username

your PeopleSpheres username

password

your PeopleSpheres password

Keep this secret safe

Example cURL :

Sample response :

Notes

  1. The default access token lifetime is 300 seconds in this environment.

  2. The refresh token lifetime can be up to 36000 seconds depending on configuration.

Last updated