Skip to content

Commit

Permalink
Allow to choose Keycloak as separate provider
Browse files Browse the repository at this point in the history
This change doesn't do a lot on its own. It merely
makes it possible to create an OIDC provider of type "Keycloak",
which you will also be able to see in the list of providers,
but otherwise it feels and behaves like a regular custom provider.
  • Loading branch information
NobodysNightmare committed Dec 5, 2024
1 parent 65bb1b6 commit 37b42bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def new
"google"
when "microsoft_entra"
"microsoft_entra"
when "keycloak"
"keycloak"
else
"custom"
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module OpenIDConnect
class Provider < AuthProvider
include HashBuilder

OIDC_PROVIDERS = %w[google microsoft_entra custom].freeze
OIDC_PROVIDERS = %w[google microsoft_entra keycloak custom].freeze
DISCOVERABLE_ATTRIBUTES_MANDATORY = %i[authorization_endpoint
userinfo_endpoint
token_endpoint
Expand Down
2 changes: 2 additions & 0 deletions modules/openid_connect/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ en:
name: Google
microsoft_entra:
name: Microsoft Entra
keycloak:
name: Keycloak
custom:
name: Custom
upsale:
Expand Down

0 comments on commit 37b42bc

Please sign in to comment.