arazzo: 1.0.1 info: title: Auth0 Create Client, Create Connection and Enable summary: Create a client application, create a connection, and enable the connection for the new client. description: >- A full application bootstrap flow. The workflow creates a client application, creates a new identity connection, and enables that connection for the freshly created client so users from the connection can sign in to the application. Each step spells out its request inline so the flow can be read and executed without opening the underlying OpenAPI description. version: 1.0.0 sourceDescriptions: - name: auth0ManagementApi url: ../openapi/auth0-management-api-openapi.yml type: openapi workflows: - workflowId: create-client-create-connection-enable summary: Create a client and a connection, then enable the connection for the client. description: >- Creates a client, creates a connection, and enables the connection for the new client using its returned client_id. inputs: type: object required: - clientName - connectionName - strategy properties: clientName: type: string description: Name for the client application. connectionName: type: string description: Name for the new connection. strategy: type: string description: Identity provider strategy for the connection (e.g. auth0). steps: - stepId: createClient description: >- Create a new client application. operationId: post_clients requestBody: contentType: application/json payload: name: $inputs.clientName successCriteria: - condition: $statusCode == 201 outputs: clientId: $response.body#/client_id - stepId: createConnection description: >- Create a new connection with the supplied name and strategy. operationId: post_connections requestBody: contentType: application/json payload: name: $inputs.connectionName strategy: $inputs.strategy successCriteria: - condition: $statusCode == 201 outputs: connectionId: $response.body#/id - stepId: enableClient description: >- Enable the new connection for the newly created client. operationId: patch_clients parameters: - name: id in: path value: $steps.createConnection.outputs.connectionId requestBody: contentType: application/json payload: - client_id: $steps.createClient.outputs.clientId status: true successCriteria: - condition: $statusCode == 204 outputs: clientId: $steps.createClient.outputs.clientId connectionId: $steps.createConnection.outputs.connectionId