You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to achieve an Authorization Code with PKCE flow and public client for a Single Page web App (that can't keep a client_secret safe). I am using the latest release 2.4.0 but having the same issue described above.
I register a new app with Client type = PublicGrant type = Authorization code and Algorithm = RSA 256 (because I'm using OIDC) - screenshot below
When I include the Client Secret in Postman, I get both the code and token correctly ✅
When I omit the Client Secret, I get the code returned OK but the "POST /o/token/ returns 401 and gives me "Error: invalid_client" ❌
I've tried with both PKCE_REQUIRED true and false
@n2ygk do you (or anyone else) have any ideas as to what I might be doing wrong?
n2ygk
changed the title
I'm trying to achieve an Authorization Code with PKCE flow and public client for a Single Page web App (that can't keep a client_secret safe). I am using the latest release 2.4.0 but having the same issue described above.
app without client_secret (still) not working?
May 23, 2024
@n2ygk ahhhhh can't believe I didn't try that! That was all I needed thanks! I guess because the Client Secret is auto-populated by the UI, I was in the mindset that every app has a client secret, and it's just up to the "Client type" to determine if the client must send it or not. I never thought of saving a blank secret, and now it makes total sense. Really appreciate your help with this!
I'm trying to achieve an Authorization Code with PKCE flow and public client for a Single Page web App (that can't keep a client_secret safe). I am using the latest release 2.4.0 but having the same issue described above.
Client type = Public
Grant type = Authorization code
andAlgorithm = RSA 256
(because I'm using OIDC) - screenshot belowPKCE_REQUIRED
true and false@n2ygk do you (or anyone else) have any ideas as to what I might be doing wrong?
Originally posted by @s1monj in #1092 (comment)
The text was updated successfully, but these errors were encountered: