Untitled

mail@pastecode.io avatar
unknown
terraform
2 years ago
758 B
2
Indexable
#identity_providers
resource "aws_cognito_identity_provider" "oauth-f5_provider" {
  user_pool_id  = "${aws_cognito_user_pool.pool-AD-Fozzy.id}"
  provider_name = "oauth-f5.fozzy.ua"
  provider_type = "OIDC"

  provider_details = {
    authorize_scopes = "email openid phone"
    client_id        = ""
    client_secret    = ""

    oidc_issuer = "https://oidoauth.fozzy.ua/f5-oauth2/v1/.well-known/openid-configuration"
    authorize_url = "https://oidoauth.fozzy.ua/f5-oauth2/v1/authorize"
    token_url = "https://oidoauth.fozzy.ua/f5-oauth2/v1/token"
    jwks_uri = "https://oidoauth.fozzy.ua/f5-oauth2/v1/jwks"
    response_type =  "code"

    
  }

  attribute_mapping = {
    email    = "email"
    username = "sub"
  }


}