Configure Cognito OAuth 2.0 Secrets
You must configure your app’s Cognito OAuth 2.0 secrets if you would like to use the User Management Service to authenticate users into your app through Amazon Cognito as identity provider.
Before you proceed, you must first obtain the Cognito credentials from the AWS Console. This includes a User Pool ID and a Client ID.
Updating your app’s Cognito OAuth 2.0 secrets
- Obtain your Cognito credentials from the AWS Console (User Pool ID, Client ID).
- In the SBS Console, run the
updateApp
mutation and provide the previously obtained authorization details as parameters.
mutation updateApp($id: ID!, $input: UpdateAppInput!) {
updateApp(id: $id, input: $input) {
id
name
cognitoClientSecret {
web {
userPoolId
clientId
}
}
}
}
Make sure to replace the example variables below with your values, as applicable.
{
"id": "YOUR_APP_ID",
"input": {
"cognitoClientSecret": {
"web": {
"userPoolId": "YOUR_USER_POOL_ID",
"clientId": "YOUR_CLIENT_ID"
}
}
}
}