Skip to content

Commit

Permalink
Update Configure Authentication.adoc
Browse files Browse the repository at this point in the history
The scopes are not yet implemented, however we have defined some of the scopes in the OAuth2, passing the wrong scope will cause authentication to block the request.
  • Loading branch information
daniel-samson committed Apr 12, 2018
1 parent 4f537e9 commit 63fbf4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/developer/API/version-8/Configure Authentication.adoc
Expand Up @@ -77,7 +77,7 @@ Required parameters
|grant_type |client_credentials
|client_id |*ExampleClientName*
|client_secret |*ExampleSecretPassword*
|scope |basic
|scope | standard:create standard:read standard:update standard:delete standard:delete standard:relationship:create standard:relationship:read standard:relationship:update standard:relationship:delete
|======================================


Expand All @@ -92,7 +92,7 @@ $postStr = json_encode(array(
   'grant_type' => 'client_credentials',
   'client_id' => '3D7f3fda97-d8e2-b9ad-eb89-5a2fe9b07650',
   'client_secret' => 'client_secret',
   'scope' => ''
   'scope' => 'standard:create standard:read standard:update standard:delete standard:delete standard:relationship:create standard:relationship:read standard:relationship:update standard:relationship:delete'
));
$url = 'https://path-to-instance/api/oauth/access_token';
curl_setopt($ch, CURLOPT_URL, url);
Expand Down Expand Up @@ -178,7 +178,7 @@ Required parameters
|grant_type |password
|client_id |*ExampleClientName*
|client_secret |*ExampleSecretPassword*
|scope |basic
|scope | standard:create standard:read standard:update standard:delete standard:delete standard:relationship:create standard:relationship:read standard:relationship:update standard:relationship:delete
|username |*admin*
|password |*secret*
|======================================
Expand All @@ -199,7 +199,7 @@ $postStr = json_encode(array(
   'client_secret' => 'client_secret',
   'username' => 'admin',
   'password' => 'admin',
   'scope' => ''
   'scope' => 'standard:create standard:read standard:update standard:delete standard:delete standard:relationship:create standard:relationship:read standard:relationship:update standard:relationship:delete'
));
$url = 'https://path-to-instance/api/oauth/access_token';
curl_setopt($ch, CURLOPT_URL, url);
Expand Down

0 comments on commit 63fbf4d

Please sign in to comment.