Skip to content

Commit

Permalink
Re-enable custom attribute mapping spec
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Oct 18, 2024
1 parent 35c82d3 commit 8764daa
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions modules/openid_connect/spec/requests/openid_connect_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@

describe "sign-up and login" do
let(:limit_self_registration) { false }

before do
create(:oidc_provider, slug: "keycloak", limit_self_registration:)
end
let!(:provider) { create(:oidc_provider, slug: "keycloak", limit_self_registration:) }

it "logs in the user" do
##
Expand Down Expand Up @@ -144,12 +141,7 @@
let(:limit_self_registration) { true }

it "does not allow registration" do
##
# it should redirect to the provider's openid connect authentication endpoint
click_on_signin("keycloak")

##
# it should redirect back from the provider to the login page
redirect_from_provider("keycloak")

expect(response).to have_http_status :found
Expand All @@ -158,7 +150,7 @@

user = User.find_by(mail: user_info[:email])
expect(user).to be_registered
expect(user).not_to be active
expect(user).not_to be_active
end
end

Expand Down Expand Up @@ -200,9 +192,8 @@
end

it "maps to the login" do
skip "Mapping is not supported yet"
click_on_signin
redirect_from_provider
click_on_signin("keycloak")
redirect_from_provider("keycloak")

user = User.find_by(login: "a.truly.random.value")
expect(user).to be_present
Expand Down

0 comments on commit 8764daa

Please sign in to comment.