Any example with "state" parameter instead of using a code verifier? #53
-
I am trying to integrate with vipps login. They their code example/api docs they don't use the If I do send those along with the recommended params, i get Any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
I cannot speak to any particular authorization server vendor, but if they don't support PKCE then they don't fall under the profile this software and current best practice expects and you ought to look for another software to interoperate with that vendor. |
Beta Was this translation helpful? Give feedback.
-
I have used something similar as well to test if everything else works (which seems to be the case). I can also see how a code_verifier is necessary when deploying to a frontend-only or desktop app without a server, because we can't hold a secret securely there. Is this also the way it should be done for server applications? I already have my client secret for making sure no one else can read the authorization_code, or did I understand that wrong? I am asking because my backend is stateless and I don't want to create a new database model for the verifier and check that table regularly to delete all non-used ones. So I guess my question is 1. is this need / can I use this package without a code_verifier? 2. Is the solution of having a hardcoded "x" a security flaw (if yes under what circumstances). |
Beta Was this translation helpful? Give feedback.
-
@panva Hi! I have the same problem with the Spotify auth server. I want to use authorization code without PKCE extension, but with this library I can't do that. In my case, I'm making requests from the server, so I dont need to worry about token to be stolen or client secret to be exposed. I can't put some arbitrary value in code verifier because spotify supports pkce. I don't want to use PKCE, because then I would have to update the refresh token every time I need to get a new access token. I would like to just put my refresh token in env and use it. PKCE just makes it harder for me to do that. Why do you not want to support a plain authcode? Is there any reason for this? |
Beta Was this translation helpful? Give feedback.
I cannot speak to any particular authorization server vendor, but if they don't support PKCE then they don't fall under the profile this software and current best practice expects and you ought to look for another software to interoperate with that vendor.