Skip to content

Commit

Permalink
Create PKCE verifier according to RFC 7636 (#13)
Browse files Browse the repository at this point in the history
* Create PKCE verifier according to RFC 7636

* !fixup Create PKCE verifier according to RFC 7636
  • Loading branch information
decius7bc committed Jan 17, 2024
1 parent caaa280 commit 709a8fd
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 @@ -89,7 +89,7 @@ defmodule Oidcc.Plug.Authorize do

state = Map.get(params, "state", :undefined)
nonce = 96 |> :crypto.strong_rand_bytes() |> Base.encode64(padding: false)
pkce_verifier = 96 |> :crypto.strong_rand_bytes() |> Base.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 709a8fd

Please sign in to comment.