appsync-notify-subscribers-of-database-updates/1-http/auth.yaml [45:72]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      AllowedOAuthScopes:
        - email
        - openid
        - profile

  # Create a hosted domain for users to signup and login
  UserPoolDomain:
    Type: AWS::Cognito::UserPoolDomain
    Properties:
      Domain: !Sub myauth${AWS::AccountId}
      UserPoolId: !Ref UserPool

Outputs:
    UserPoolId:
      Description: "User pool ID"
      Value: !Ref UserPool

    UserPoolClientId:
      Description: "Application client ID"
      Value: !Ref UserPoolClient

    AuthUrl:
      Description: "URL used for authentication"
      Value: !Sub https://${UserPoolDomain}.auth.${AWS::Region}.amazoncognito.com/login

    Issuer:
      Description: "Url used for issuer on HTTP API JWT tokens"
      Value: !Sub https://cognito-idp.${AWS::Region}.amazonaws.com/${UserPool}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cognito-httpapi/auth.yaml [55:82]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      AllowedOAuthScopes:
        - email
        - openid
        - profile

  # Create a hosted domain for users to signup and login
  UserPoolDomain:
    Type: AWS::Cognito::UserPoolDomain
    Properties: 
      Domain: !Sub myauth${AWS::AccountId}
      UserPoolId: !Ref UserPool
    
Outputs:
    UserPoolId:
      Description: "User pool ID"
      Value: !Ref UserPool

    UserPoolClientId:
      Description: "Application client ID"
      Value: !Ref UserPoolClient

    AuthUrl:
      Description: "URL used for authentication"
      Value: !Sub https://${UserPoolDomain}.auth.${AWS::Region}.amazoncognito.com/login
      
    Issuer:
      Description: "Url used for issuer on HTTP API JWT tokens"
      Value: !Sub https://cognito-idp.${AWS::Region}.amazonaws.com/${UserPool}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



