项目作者: ministryofjustice

项目描述 :
Auth0 Client resource for Concourse
高级语言: Python
项目地址: git://github.com/ministryofjustice/analytics-platform-concourse-auth0-client-resource.git


Docker Repository on Quay

Auth0 Client Resource

Provides a Concourse resource to get and create Auth0 Clients. Used to create a
Client on the fly when deploying a webapp on the Analytical Platform, allowing
authentication delegation to Auth0 using OTP emails.

Resource configuration

These parameters go into the source fields of the resource type. Bold items are required:

Parameter Description
client-id Auth0 client ID for authentication to the Management API
client-secret Auth0 client secret for authentication to the Management API
domain Auth0 client domain for authentication to the Management API
authz-url Base URL of the Auth0 Authorization Extension API
authz-audience API Audience of the Auth0 Authorization Extension API

Behaviour

check: Not Supported

in: Retrieve Client Details

Fetches the client ID and secret.

Parameters

  • name: Required. The name of the client.
  • domain: Required. The domain of the client, such that the OIDC well-known
    URLS are located at https://{name}.{domain}/.well-known

out: Create Client

Creates a client with the specified name if it does not exist.

Parameters

  • name: Required. The name of the client.
  • domain: Required. The domain of the client, such that the OIDC well-known
    URLS are located at https://{name}.{domain}/.well-known

Installation

This resource is not included with Concourse CI. You must integrate this resource in the resource_types section of your pipeline.

  1. resource_types:
  2. - name: auth0-client
  3. type: docker-image
  4. source:
  5. repository: quay.io.mojanalytics/concourse-auth0-resource
  6. tag: 0.1.0
  7. resources:
  8. - name: webapp-auth0-client
  9. type: auth0-client
  10. source:
  11. client-id: ((auth0-client-id))
  12. client-secret: ((auth0-client-secret))
  13. domain: ((auth0-domain))
  14. authz-url: ((auth0-authz-url))
  15. authz-audience: ((auth0-authz-audience))
  16. jobs:
  17. - name: deploy
  18. plan:
  19. - put: webapp-auth0-client
  20. params:
  21. name: ((client-name))
  22. domain: ((client-domain))

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b feature/new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin feature/new-feature
  5. Submit a pull request.

License

MIT Licence (MIT)