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

OAUTH Additional claims #1913

Open
serg-bs opened this issue Mar 15, 2024 · 0 comments
Open

OAUTH Additional claims #1913

serg-bs opened this issue Mar 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@serg-bs
Copy link

serg-bs commented Mar 15, 2024

Is your feature request related to a problem? Please describe.

We have Identity provider for multiple applications.
We want to have granular access. For that we need additional claims

For example https://www.pgadmin.org/docs/pgadmin4/8.3/oauth2.html
OAUTH2_ADDITIONAL_CLAIMS
Pgadmin example

{
    'OAUTH2_NAME': 'SAP',
    'OAUTH2_DISPLAY_NAME': 'SAP IAS',
    'OAUTH2_CLIENT_ID': '<clientId>',
    'OAUTH2_CLIENT_SECRET': '<clientSecret>',
    'OAUTH2_TOKEN_URL': '<ias base url>oauth2/token',
    'OAUTH2_AUTHORIZATION_URL': '<ias base url>oauth2/authorize',
    'OAUTH2_SERVER_METADATA_URL': '<ias base url>.well-known/openid-configuration',
    'OAUTH2_API_BASE_URL': '<ias base url>',
    'OAUTH2_USERINFO_ENDPOINT': '<ias base url>oauth2/userinfo',
    'OAUTH2_SCOPE': 'openid email profile',
    'OAUTH2_USERNAME_CLAIM': 'email',
    'OAUTH2_ICON': 'fa-sign-in',
    'OAUTH2_BUTTON_COLOR': '#F0AB00'
    'OAUTH2_ADDITIONAL_CLAIMS': {
        'groups': ['pgadmin']
    }
}

Describe the solution you'd like

Introduce additional variables to pass claims

@serg-bs serg-bs added the enhancement New feature or request label Mar 15, 2024
@serg-bs serg-bs mentioned this issue Apr 8, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant