Fix OAuth2 provider discovery to use Spring's ClientRegistration dynamically #541
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
java
question
refactor
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
agony-forge/agonyforge!541
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-oauth2-dynamic-providers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
OAuth2Properties hard-coded 'github' as the only provider, making it
impossible to configure additional OAuth2 providers via Spring config.
Replace with injection of List, which Spring Boot
automatically populates from spring.security.oauth2.client.registration.*
properties. Now adding a new registration (e.g. Google, GitLab) in
application.yaml automatically creates a login button for it on the
front page.
1a5c12ad8a08f4e0c98d