Unauthorized Client, but is authorized?

I'm using this redirect for login:
$"https://login.usw2.pure.cloud/oauth/authorize?client_id={clientId}&response_type=code&redirect_uri={decodedUri}";

I get ?error=unauthorized_client from the response.

Reusing some of this for my test:

The clientId is valid.
It's setup as a token implicit grant.
The user logging in has oauth:client:authorize permission.
The oauth scope has oauth and users.
Redirect is in the redirect AuthorizedUris box.

Am I missing anything?

Goal is to get the logged in user.

Hello,

The url you are using does not correspond to an OAuth Client defined with Token Implicit Grant Type.

Such url (with response_type=code) corresponds to an Authorization Code Grant flow. Same with the C# code.
You have to create an OAuth Client with Grant Type set to: Code Authorization/PKCE.

Regards,

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.