From 709a8fdb5588f02aa7bc15cb08517d8171e7471a Mon Sep 17 00:00:00 2001 From: Jan Schlosser Date: Wed, 17 Jan 2024 09:46:16 +0100 Subject: [PATCH] Create PKCE verifier according to RFC 7636 (#13) * Create PKCE verifier according to RFC 7636 * !fixup Create PKCE verifier according to RFC 7636 --- lib/oidcc/plug/authorize.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oidcc/plug/authorize.ex b/lib/oidcc/plug/authorize.ex index dda6920..63f20dc 100644 --- a/lib/oidcc/plug/authorize.ex +++ b/lib/oidcc/plug/authorize.ex @@ -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)