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

Ability to set scopes via rules #61

Open
ammmze opened this issue Mar 12, 2022 · 0 comments
Open

Ability to set scopes via rules #61

ammmze opened this issue Mar 12, 2022 · 0 comments

Comments

@ammmze
Copy link

ammmze commented Mar 12, 2022

I've got a scenario where when a request for a certain domain comes in, I would like to add an additional scope to the authentication request. I've got an idea for how that would work and how I could implement it, but before spending the time doing so, I'd like to run it by the folks here and see if we can get a 👍🏻 on the idea.

So the configuration would look something like the following:

Add additional scopes to the global ones

rule.two.action=auth
rule.two.addScopes=foo bar
rule.two.rule=Host(`two.com`)

Replace global scopes with the ones defined

rule.two.action=auth
rule.two.scopes=foo bar
rule.two.rule=Host(`two.com`)

Specifically for my scenario, for a certain domain, I want to add the scope that will use the Dex IDP Cross-client trust and authorized party functionality so that the token is authorized for a different client.

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

No branches or pull requests

1 participant