Authorization Code Defined Example OAuth 2.0
Use OAuth 2.0 client credentials grant flow to enable a web service to use its own credentials to authenticate another call web service.
Use the offline_access scope parameter when connecting through this method. Logging into the RIM API should follow the refresh_token grant after initial bearer token has been generated.
If there is no redirection configured to verify the user login details, and the callback URI is not registered in the Azure Portal - App Registration, this process will require a manual step
| Parameter Name | Value |
|---|---|
| client_id | xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx |
| response_type | code |
| redirect_uri | https://some-vaid-uri-configured-in-azure-portal |
| response_mode | query |
| scope | <registered client_id>/.default openid offline_access |
| state | <A random string> |
The tenant_id format: xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx.
Once the URL is updated, paste the string into a web browser. This will direct you to Ennov InSight login page. If there is no redirection configured, you will logon Ennov InSight . In this case, close the browser window and re-copy the original URL.
A successful code generation displays an Http 400 error page without a valid redirection_uri defined. Example: <login_url_registered_in_app-portal>?code=<very_long_hash_string>&state=<a_state_value>&session_state=<a_auto_generated_string>
Copy the whole of the URL to a text editor and extract the very long hash string between code= and &state.