Connect to multiple providers
- Dominant language
- Groovy
- Stars
- 2.9k
- Forks
- 975
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 92
Description
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!
Contributor guide
Research direction
Start with the application.yml configuration shown in the issue and determine how this plugin identifies and stores multiple OAuth2 providers. No source files or tests are named, so first locate the provider configuration and callback entry points, then establish whether distinct provider identifiers can be configured and tested for two OKTA accounts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- authentication
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100