Invision OAuth Client
This document will guide you through configuring Invision Community as an OAuth Client and Drupal as an OAuth Server. Using the miniOrange OAuth Server module, you can enable seamless Single Sign-On (SSO) between Invision Community and your Drupal site, allowing users to log in to Invision Community using their Drupal credentials. This module is compatible with Drupal 7, 8, 9, 10, and 11.
Check out the Installation steps:
Configure an Application in Invision Community:
- Login to the Invision Community using your administrator credentials.
-
Navigate to the Login & Registration tab under the Settings section of the left navigation panel. Click on the Create New button.

-
Now, select Other OAuth 2.0 and click on the Continue button.

-
Enter an Application Name under the Name text field, and then copy the Redirect URL value from under the Application Settings section.

Configure Drupal as OAuth Server:
- Navigate to the Drupal site and go to the Configuration tab from the top navigation bar.
- Now, select the miniOrange OAuth Server Configuration.
- Click on the Add client button.

- Enter a name for your application in the Application Name field.
- Paste the Callback/Redirect URL into the Redirect URLs field in the Drupal OAuth Server module.
- To add multiple Callback URLs, click the Add button next to the Redirect URLs field and enter the additional URLs.
- In the Grant Types section, enable the OAuth flow(s) required by your application. For a standard Authorization Code flow, enable Authorization Code.
- Optionally, enable additional grant types such as Authorization Code + PKCE, Refresh Token, Client Credentials, Resource Owner Password, or Implicit, based on your application's requirements.
- Under Application Status, ensure that the Enable this OAuth client option is turned on.
- Click the Create client button to save the configuration.

Configure Invision Community as OAuth Client:
- In the Drupal OAuth Server module, navigate to the Configure Applications section and copy the Client ID and Client Secret. Keep them handy for later use.

- Navigate to the Invision dashboard.
- Select the Grant Type as Authorization Code.
-
Paste the copied Client ID under the Client Identifier text field.

-
Next, paste the copied Client Secret into the Client Secret text field in the Invision Community dashboard.

- Navigate to the Scopes tab of the Drupal module.
- Enable the following scopes by toggling the Allow option:
- openid
- profile
- Click Save client to save the scope configuration.
- After enabling the required scopes and saving the configuration, copy the Scope String displayed at the top of the Scopes tab and paste it into Invision, if required.

- Paste the copied Scope under the Scopes to request text field in the Invision Community dashboard.

- Navigate to the App Registration tab and locate the OAuth / OIDC endpoints section.
- Copy the Authorization Endpoint, Token Endpoint, and UserInfo Endpoint by clicking the copy icon next to each endpoint.

- In the Invision Community dashboard, paste the copied Authorize Endpoint into the Authorization Endpoint text field.

-
Then, paste the copied Access Token Endpoint into the Token Endpoint text field in the Invision Community dashboard.

-
Similarly, paste the copied User Info Endpoint into the User Information Endpoint text field.

-
Under the User ID Parameter, enter the Unique identifier of the user, like email or username.

-
Scroll down, and click on the Save button.

You have successfully configured Invision Community as OAuth Client and Drupal as OAuth server.
Let’s see how this works:
- Open a new window/private browser and navigate to the login page of the Invision Community website.
-
Click on the Login with Drupal button.

-
You will get redirected to your Drupal site login page where you will enter your Drupal credentials and click on the Log in button.

- On successful authentication, you will get redirected back and logged into the Invision Community.
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion