Skip to content

Commit

Permalink
revert entity -> identity change
Browse files Browse the repository at this point in the history
  • Loading branch information
suprjinx committed Nov 17, 2024
1 parent a11c887 commit 13608b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/utils/oidc_provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ def create_userpass_for_initial_user
end

def map_userpass_to_entity
identity = vault_client.logical.read(
entity = vault_client.logical.read(
"identity/entity/name/#{Config[:initial_user_name]}")
entity_id = identity.data[:id]
entity_id = entity.data[:id]
auth_list = vault_client.logical.read("/sys/auth")
accessor = auth_list.data[:"userpass/"][:accessor]
vault_client.logical.write("identity/entity-alias",
Expand Down

0 comments on commit 13608b1

Please sign in to comment.