Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.22 KB

client.md

File metadata and controls

30 lines (24 loc) · 1.22 KB

How do I deploy an Auth0 Client?

It is quite easy: you specify a CloudFormation resource of type Custom::Auth0Client.

  Client:
    Type: Custom::Auth0Client
    Properties:
      ServiceToken: !Sub 'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:cfn-auth0-provider'
      Value:
        name: cfn-auth0-petstore-client
        description: Sample Auth0 Client
        app_type: non_interactive
        allowed_origins:
          - http://localhost:3000
        callbacks:
          - http://localhost:3000/consumer-api/v1/callback

In the Value you can specify all of the properties for the Create a client operation.

After the deployment, the client cfn-auth0-petstore-client can be found in your Auth0 tenant. The client id can be obtained through !GetAtt 'Client.ClientId'.

Return values

For the Custom::Auth0Client the following values are available with 'Fn::GetAtt':

 `Domain` - the domain name of the application
 `ClientId` - the client id of the application

For more information about using Fn::GetAtt, see Fn::GetAtt.