User Authentication
Last updated
Last updated
One advantage of using OAuth2 over SAML is that it is possible to require individuals to authorise access to certain resources. Thus users grant access to PlaceOS which can maintain a refresh token for offline access as needed.
Confirm the final UAT and PROD URLs of the web apps
Ensure that the DNS entries for these URLs are active and forwarding to the server(s)
Ensure that the SSL certificates for the above domains are signed and recognized as secure
User tokens obtained from the OAuth2 flow are stored in the database and can be used for making requests on behalf of the users logging in.
You can obtain a token via POST /api/engine/v2/users/resource_token
It will return a JSON payload
If the OAuth2 service returned a refresh token then this API will always return a valid token, refreshed as required (there is never direct access to the refresh token)
With multiple authentication sources you may have to specify which source to use for OAuth configuration: