Skip to content

Commit

Permalink
cleanup local names
Browse files Browse the repository at this point in the history
  • Loading branch information
George Jahad committed Oct 10, 2024
1 parent 4957347 commit f3a4828
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/lib/clients/vault/oidc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ def create_userpass_for_initial_user
end

def map_userpass_to_entity
op_entity = oidc_provider.logical.read(
entity = oidc_provider.logical.read(
"identity/entity/name/#{Config[:initial_user][:name]}")
op_entity_id = op_entity.data[:id]
op_auth_list = oidc_provider.logical.read("/sys/auth")
up_accessor = op_auth_list.data[:"userpass/"][:accessor]
entity_id = entity.data[:id]
auth_list = oidc_provider.logical.read("/sys/auth")
up_accessor = auth_list.data[:"userpass/"][:accessor]
oidc_provider.logical.write("identity/entity-alias",
name: Config[:initial_user][:name],
canonical_id: op_entity_id,
canonical_id: entity_id,
mount_accessor: up_accessor)
end

Expand Down

0 comments on commit f3a4828

Please sign in to comment.