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

build: set up local OIDC endpoint with dex #5

Closed
wants to merge 1 commit into from
Closed

Conversation

tpluscode
Copy link
Collaborator

Adds dex OIDC server to the docker-compose (via lando) to have a real authentication flow locally

# OIDC config
AUTH_ISSUER=https://auth.cube-creator.lndo.site
AUTH_AUDIENCE=cube-creator
AUTH_JWKS_URI=http://dex:5556/keys
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lndo.site URLs cannot be used inside the containers right (which I think is a bug, reported as lando/lando#2579)

Instead the service name has to be used to call dex from API to verify token

app.get('/authenticated', (req, res) => {
return res.status(200).end()
})

app.get('/protected', guard().check('scope'), (req, res) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sandhose how would we configure dex to have custom scopes?

@tpluscode tpluscode closed this Sep 9, 2020
@tpluscode tpluscode deleted the dex branch November 5, 2020 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant