Skip to content

Commit

Permalink
add some doc about azure
Browse files Browse the repository at this point in the history
  • Loading branch information
sstrigler committed Mar 31, 2017
1 parent a898543 commit 47e6c33
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ Retrieve a client with access_token using Client Credentials Grant
{ok, Headers, Client}
```

**Microsoft Azure AD**: Since parameters are different please use `<<"azure_client_credentials">>` as `Type` when retrieving an access token for that service. Be sure to set a `Scope` if you want to access any of the connected APIs.

```erlang
2> oauth2c:retrieve_access_token(
<<"azure_client_credentials">>,
<<"some_tenant_specific_oauth_token_endpoint">>,
<<"some_registered_app_id">>,
<<"some_created_key">>,
<<"https://graph.microsoft.com">>).
{ok, Headers, Client}
```

The Opaque `Client` object is to be used on subsequent requests like:

```erlang
Expand Down

0 comments on commit 47e6c33

Please sign in to comment.