apache / apache/grails-core

Connect to multiple providers

Open
#15,932 0 comments 0 reactions 0 assignees View on GitHub
relates-to:spring-security
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.