Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sandbox OpenID Connect identity provider for local development #92

Closed
lpsinger opened this issue Jun 7, 2022 · 1 comment
Closed

Sandbox OpenID Connect identity provider for local development #92

lpsinger opened this issue Jun 7, 2022 · 1 comment
Assignees
Labels
auth Authentication and authorization backend Issue relates to back-end development (API endpoints and other server-side code) enhancement New feature or request

Comments

@lpsinger
Copy link
Member

lpsinger commented Jun 7, 2022

Implement a sandbox OpenID Connect identity provider for local development so that parts of the web site that require login function without connecting to the real Amazon Cognito identity provider.

  1. Add node-oidc-provider as a dev dependency.
  2. Create an Architect plugin in the src/plugins directory and add it to the @plugins section of app.arc.
  3. In the plugin, add a sandbox.start hook that initializes a node-oidc-provider Provider and runs it on an open port. It can have a single, hardcoded user account.
  4. In the plugin, add a set.env hook which populates an env variable with the OIDC .well-known/openid-configuration metadata: from the sandbox identity provider if running in sandbox mode, or from the Cognito identity provider if running in production mode.
  5. Update app/routes/__auth to configure node-openid-client using the OIDC metadata returned by the plugin.

This will close #91.

@lpsinger lpsinger added enhancement New feature or request backend Issue relates to back-end development (API endpoints and other server-side code) auth Authentication and authorization labels Jun 7, 2022
@lpsinger
Copy link
Member Author

lpsinger commented Dec 9, 2022

Closed by #449.

@lpsinger lpsinger closed this as completed Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Authentication and authorization backend Issue relates to back-end development (API endpoints and other server-side code) enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants