-
Notifications
You must be signed in to change notification settings - Fork 0
/
petstore-client.tf
30 lines (24 loc) · 973 Bytes
/
petstore-client.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
resource "aws_cognito_resource_server" "petstore_resource_server" {
identifier = "petstore"
name = "Petstore"
scope {
scope_name = "pets"
scope_description = "Pets"
}
user_pool_id = module.tf-cgnt-api.cognito_user_pool_id
}
resource "aws_cognito_user_pool_client" "petstore-client" {
name = var.cognito_petstore_client_name
user_pool_id = module.tf-cgnt-api.cognito_user_pool_id
generate_secret = true
refresh_token_validity = var.refresh_token_validity
allowed_oauth_flows_user_pool_client = true
allowed_oauth_flows = ["implicit", "code"]
explicit_auth_flows = ["ALLOW_CUSTOM_AUTH", "ALLOW_USER_SRP_AUTH", "ALLOW_REFRESH_TOKEN_AUTH"]
allowed_oauth_scopes = var.allowed_oauth_scopes
callback_urls = var.callback_urls
logout_urls = var.logout_urls
supported_identity_providers = [
"COGNITO",
]
}