I’ve trying to get the access token for my SPA, for which I’ve to use the grant type as client_credentials, but its unavailable for an SPA. Tried using the token_endpoint_auth_method, but it still won’t work. Please help me out with it.
Hey there @souravpanda.dev!
Are you able to elaborate on your specific use case a bit? The client credentials grant is unavailable for a SPA as it’s intended to be used in machine to machine scenarios. A SPA is a public application and should use a redirect flow when possible. The ROPG (password) grant is discouraged but can be utilized in certain scenarios. The following doc should be useful in determining which OAuth flow to use:
Hope this helps!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.