Loading

Help documentation

Configuring OAuth 2.0 enabled gadgets

Mingle is now capable of displaying OpenSocial gadgets with its OpenSocial gadget macro. This page documents how to configure Mingle to display OpenSocial gadgets that require user authentication via OAuth 2.0. For each different gadget content provider from whom you wish to display gadgets, you will need to follow these steps, creating a separate entry for each one.

Note that if you are simply looking to configure the display of Go pipeline status gadgets in Mingle, please skip straight the the instructions that are specific to showing Go gadgets in Mingle.

A big part of the OAuth protocol depends upon Go being configured with some special URLs that must be correctly communicated to the gadget provider administrator. And these URLs must be HTTPS endpoints. The Mingle administrator should double check that a secure site URL has been properly specified, via either the mingle.siteURL or mingle.secureSiteURL property, in the mingle.properties file. This configuration setting is discussed in the "Configuring site URLs" section of the Advanced Mingle Configuration page. The Go administrator should make a similar check of his Go configuration (although the mechanism for specifying site URLs differs in Go).

If you are using Apache, please check out the Apache settings page for OAuth with Apache configuration.

Step 1 - Gather OAuth 2.0 Client ID, Client Secret, and Authorization URL from gadget provider

The first step is to establish the OAuth trust secrets between the gadget provider and Mingle, the gadget rendering server. The Mingle administrator will need to ask the gadget provider's administrator for the OAuth 2.0 client id, client secret, and authorization URL. In order for the gadget provider's administrator to supply this information to the Mingle administrator he will need to know Mingle's OAuth redirect URI. The Mingle administrator should send along the Redirect URI with the request for the OAuth client information.

To determine Mingle's OAuth redirect URI, in Mingle, logged in as an administrator, go to the home page that lists all projects. In the administration menu at the top of the page, Click the 'Manage OAuth enabled gadget providers' link. On this page, in the blue info box, you'll see the OAuth Redirect URI. Copy and paste this URL to a scratch pad for use in the next step. Below is an example screenshot of Mingle displaying its OAuth Redirect URI. (Please do not attempt to derive your own redirect URI from this screenshot.)

Mingle

Step 2 - Configure Mingle to render gadgets from the provider

You must now configure the Mingle half of that trust relationship. In Mingle, logged in as an administrator, go to the home page that lists all projects. In the administration menu at the top of the page, Click the 'Manage OAuth enabled gadget providers' link. Click the 'Add Provider' button to create the new entry. In the Name field enter a label that identifies the gadget provider with text your users will understand. For the OAuth Authorization URL, OAuth Client ID, and OAuth Client Secret fields enter the exact values you captured above in step 1.2.

Mingle

Click 'Submit' to save the new entry.

Step 3 - Verify

As this is an integration between two services, it's quite possible that something will not work upon first attempt at verification. Please test that the gadget can be rendered using the OpenSocial gadget macro.

Troubleshooting