You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: authentication/Cognito/README.md
+12-31Lines changed: 12 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -244,31 +244,6 @@ The Client-credentials flow will be used for M2M (Machine to Machine) communicat
244
244
It will enable communication between Decision Center and the Decision Server Console for ruleapp deployment.
245
245
It will also enable the communication between Decision Center and Decision Runner for tests and simulation.
246
246
247
-
A Resource Server needs to be created to use the client-credentials flow and some custom scopes need to be configured. A scope is a level of access that an app can request to a resource.
248
-
To get more details about scopes and resource server, you can read [OAuth 2.0 scopes and API authorization with resource servers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-define-resource-servers.html?icmpid=docs_cognito_console_help_panel)
249
-
250
-
251
-
1. Create a Resource Server
252
-
253
-
* Select the **odmuserpool** User Pool
254
-
* Click **Domain** under *Branding* in the left-hand pane
255
-
* Click the **Create resource server** button in the **Resource servers** pane
256
-
* In **Resource server**:
257
-
* Set *Resource server name* = **ODMClientCredentialsServer**
This URL can also be retrieved with the **Token signing key URL** displayed at the user pool overview replacing **jwk.json** by **openid-configuration**
441
+
464
442
Where:
465
443
- *COGNITO_REGION* is the region where the COGNITO User Pool is deployed
466
444
- *COGNITO_USER_POOL_ID* is the COGNITO User Pool ID retrieved at Amazon Cognito > User pools > odmuserpool > Overview > User pool ID
@@ -472,7 +450,7 @@ In the **Container software library** tile, verify your entitlement on the **Vie
- *COGNITO_USER_POOL_ID* is the COGNITO User Pool ID retrieved at Amazon Cognito > User pools > odmuserpool > Overview > User pool ID
@@ -485,6 +463,7 @@ In the **Container software library** tile, verify your entitlement on the **Vie
485
463
- *COGNITO_APP_CLIENT_SECRET* is the COGNITO ODM App Client Secret retrieved at Amazon Cognito > User pools > odmuserpool > App integration > odm > Client Secret
486
464
- *COGNITO_CC_CLIENT_ID* is the COGNITO ODM Client-Credentials App Client ID retrieved at Amazon Cognito > User pools > odmuserpool > App integration > odmclientcredentials > Client ID
487
465
- *COGNITO_CC_CLIENT_SECRET* is the COGNITO ODM Client-Credentials App Client Secret retrieved at Amazon Cognito > User pools > odmuserpool > App integration > odmclientcredentials > Client Secret
466
+
- *COGNITO_CC_DEFAULT_CUSTOM_SCOPE* is the Client-Credentials App default custom scope that can be retrieved in the Login tab page
488
467
489
468
Here is an example of the command line:
490
469
```
@@ -495,7 +474,8 @@ In the **Container software library** tile, verify your entitlement on the **Vie
0 commit comments