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

Connect to multiple providers #5

Open
ricvargas opened this issue Aug 18, 2019 · 0 comments
Open

Connect to multiple providers #5

ricvargas opened this issue Aug 18, 2019 · 0 comments

Comments

@ricvargas
Copy link

Hi!
Is there a way to connect to multiple OAuth2 providers with this plugin?

I'm creating a sample project to connect to 2 (or more) different OKTA accounts, this is something like what I'm trying to do:

application.yml (inside my grails app):

plugin:
    springsecurity:
        oauth2:
            active: true
            registration:
                roleNames: ['ROLE_USER']
            providers:
                okta:
                    api_key: 'XXXXXXXXX'
                    api_secret: 'XXXXXXXXX'
                    userInfoUrl: 'https://dev-XXXXXXXXX.okta.com/oauth2/default/v1/userinfo'
                    authorizeUrl: 'https://dev-XXXXXXXXX.okta.com/oauth2/default/v1/authorize'
                    tokenUrl: 'https://dev-XXXXXXXXX.okta.com/oauth2/default/v1/token'
                    scopes: 'email profile openid'
                okta:
                    api_key: 'YYYYYYYYYY'
                    api_secret: 'YYYYYYYYYY'
                    userInfoUrl: 'https://dev-YYYYYYYYYY.okta.com/oauth2/default/v1/userinfo'
                    authorizeUrl: 'https://dev-YYYYYYYYYY.okta.com/oauth2/default/v1/authorize'
                    tokenUrl: 'https://dev-YYYYYYYYYY.okta.com/oauth2/default/v1/token'
                    scopes: 'email profile openid'

Thanks and regards!

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