Skip to content

Commit

Permalink
[auth] encode query in credential offer response
Browse files Browse the repository at this point in the history
  • Loading branch information
patatoid committed Jan 4, 2024
1 parent e490f60 commit 1602205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/boruta_web/lib/boruta_web/views/oauth_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ defmodule BorutaWeb.OauthView do
end

def text_from_credential_offer(credential_offer_response) do
"openid-credential-offer://?credential_offer#{credential_offer_response |> Map.from_struct() |> Jason.encode!() |> URI.encode()}"
"openid-credential-offer://?credential_offer#{credential_offer_response |> Map.from_struct() |> URI.encode_query()}"
end

defimpl Jason.Encoder, for: Boruta.Oauth.TokenResponse do
Expand Down

0 comments on commit 1602205

Please sign in to comment.