Skip to content

Commit

Permalink
Fix certification nonce compatibility warning (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
maennchen committed Apr 30, 2024
1 parent ecd6ec2 commit 2275f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oidcc/plug/authorize.ex
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ defmodule Oidcc.Plug.Authorize do
redirect_uri = opts |> Keyword.fetch!(:redirect_uri) |> evaluate_config()

state = Map.get(params, "state", :undefined)
nonce = 96 |> :crypto.strong_rand_bytes() |> Base.encode64(padding: false)
nonce = 31 |> :crypto.strong_rand_bytes() |> Base.url_encode64(padding: false)
pkce_verifier = 96 |> :crypto.strong_rand_bytes() |> Base.url_encode64(padding: false)

%{address: peer_ip} = get_peer_data(conn)
Expand Down

0 comments on commit 2275f7f

Please sign in to comment.