Configure OAuth

  • Navigate to the Client Configuration tab, under the Manage click on the + Add New button to configure the desired OAuth Client.
  • Select the Identity Provider (OAuth Server) from the Select Application dropdown menu. Select Custom OAuth 2.0 Provider if your IDP is not on the list.
  • Provide a unique name to your application/IDP under the Custom App Name text field.
  • As per the custom app name, a callback/redirect URL will be generated. You will need it while configuring the OAuth Server. The Callback/Redirect URL is the URL where the user will be redirected after the successful authentication.
  • After that provide the information about your OAuth provider like Client ID, Client Secret, Scope, and Endpoints.

    Note: If you have selected an option from the Select Application dropdown, the Scope, and Endpoints will be auto-populated just update the relevant part for these fields.

Parameter Description
Client Id Copy the Client Id from your OpenID Provider and paste it into the miniOrange Drupal OAuth Client module.
Client Secret Copy the Client Secret from your OpenID Provider and paste it into the miniOrange Drupal OAuth Client module.
Scope openid profile email
Authorize Endpoint Copy the Authorize Endpoint from your OpenID Provider and paste it into the miniOrange Drupal OAuth Client module.
Token Endpoint Copy the Access Token Endpoint from your OpenID Provider and paste it into the miniOrange Drupal OAuth Client module.
UserInfo Endpoint Copy the UserInfo Endpoint from your OpenID Provider and paste it into the miniOrange Drupal OAuth Client module.
  • The Send Client-Id and Secret in buttons allow you to specify whether the Client ID and Secret should be included in the Header or the Body of the Token Endpoint Request. If you're unsure which option to select, you can stick with the default settings.
  • In the Login Link Settings section, enter the text you want to display as the login link on the login page.
  • Once done, click on the Save Configuration button to save the configuration.
  • Now click on the Perform Test Configuration button to check the connection between the Drupal and the Configured OAuth Provider.
  • On a Test Configuration popup, if you don't have an active session in your provider on the same browser, you'll be prompted to sign in to the provider. Once successfully logged in, you'll receive a list of attributes retrieved from the Provider.
     
    The module is successfully configured with the OAuth Provider.