Create OAuth provider API
- Log in to IBM Bluemix. Click APIs and then click your API Connect service tile. You should see the API Connect dashboard.
- Click Sandbox. Then, click Settings.
- Click Show to view the automatic subscription ID. Make a note of this ID.
- Click Endpoints. Make a note of the endpoint.
- Click the Menu icon > Drafts.
- Click APIs.
- Click Add and then click New OAuth 2.0 Provider API.
- Enter
OAuther
for the name of the new API. Click Create API.
- In the Design page for the new API, click Base Path.
- Take note of the Base Path. In the OAuth 2 section, enter
weather
in the Scope Name field.
- Click the Trash can icon to remove the additional scopes.
- Select Basic for the Identity extraction method. Then, set the Authentication URL to
https://httpbin.org/basic-auth/username/password
. - Make sure Authorization is set to Authenticated.
- Click Save.
- Click the ellipsis (three dots) beside the Save icon.
- Click Add to existing products.
- Select the Climbing Weather API check box. Click Add.