Skip to content

Commit

Permalink
[ssi] client_id as sub for anonymous resource owners
Browse files Browse the repository at this point in the history
  • Loading branch information
patatoid committed Nov 21, 2024
1 parent 679349d commit 6ee2ad3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ defmodule BorutaWeb.Oauth.AuthorizeController do
current_user = current_user || %User{}
anonymous_sub = case conn.query_params["client_id"] do
"did:" <> _key = did -> did
_ -> nil
client_id -> client_id
end
scope = case conn.query_params["scope"] do
nil -> ""
Expand Down

0 comments on commit 6ee2ad3

Please sign in to comment.