Merge pull request #6046 from Anamika1608/oidc_auth

Add support for OIDC authentication
This commit is contained in:
Javi Martín
2025-09-01 19:55:10 +02:00
committed by GitHub
19 changed files with 441 additions and 6 deletions

View File

@@ -10,6 +10,7 @@ describe Devise::OmniauthFormComponent do
Setting["feature.google_login"] = false
Setting["feature.wordpress_login"] = false
Setting["feature.saml_login"] = false
Setting["feature.oidc_login"] = false
end
it "is not rendered when all authentications are disabled" do
@@ -62,5 +63,14 @@ describe Devise::OmniauthFormComponent do
expect(page).to have_button "SAML"
expect(page).to have_button count: 1
end
it "renders the OIDC link when the feature is enabled" do
Setting["feature.oidc_login"] = true
render_inline component
expect(page).to have_button "OIDC"
expect(page).to have_button count: 1
end
end
end