Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Client Error #213

Open
azimhossaintuhin opened this issue Mar 19, 2024 · 1 comment
Open

Invalid Client Error #213

azimhossaintuhin opened this issue Mar 19, 2024 · 1 comment

Comments

@azimhossaintuhin
Copy link

After Creating An Application With Client Type "Confidential" and Authorization grant type: Resource owner password-based
When I Request An Token
And Hit The Route http://127.0.0.1:8000/auth/token
with Json Body This
{
"username": "username" ,
"password":"password",
"grant_type": "password",
"client_id": "kRMUn5rVjGowZpqe8cqi20Ldghny5ARm7FLUke9g",
"client_secret": "pbkdf2_sha256$720000$tNZxT5vI4mTyYgfrcZIZAO$MYQNjZCcURvHG18YsGfH4hSHrnjpXNcomoRYfXppVSc="
}
which is a valid client id and secret key it returns me
{
"error": "invalid_client"
}
but when i make the Client Type "Public " and hit with the same data the access and refresh token will come

@bojanKuzma
Copy link

You must use the client secret before it is hashed by pbkdf2, you are using the hashed version. It says you to save the secret before saving the application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants