Skip to content

Commit

Permalink
[ssi] fix transaction code exposure in credential offer
Browse files Browse the repository at this point in the history
  • Loading branch information
patatoid committed Dec 18, 2024
1 parent 3e1e173 commit 8b263d4
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,11 @@ defmodule BorutaIdentityWeb.TemplateView do

defp text_from_credential_offer(credential_offer) do
# TODO Jason.Encode implementation for CredentialOfferResponse
"openid-credential-offer://?credential_offer=#{
credential_offer
"openid-credential-offer://?credential_offer=#{credential_offer
|> Map.from_struct()
|> Map.delete(:credentials)
|> Map.take([:credential_configuration_ids, :credential_issuer, :grants])
|> Jason.encode!()
|> URI.encode_www_form()
}"
|> URI.encode_www_form()}"
end

defp paths(conn, assigns) do
Expand Down

0 comments on commit 8b263d4

Please sign in to comment.