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
{{ message }}
Repository navigation
Tried to implement grant_type = client_credentials .. not working v6.0 #429
The issue you encountered is caused by not using the recommended grant_type=password which makes sure that a user/admin will authenticate using an identity+password combination. Once the user is matched, the identity gets stored into the user_id you mentioned, so it will never be null for successful authentications.
We built Dotkernel API on the above scenario.
In your case, using a different grant_type follows a different auth flow, causing the user_id column not getting populated, hence the message User not found.
Is using grant_type=client_credentials a requirement in your app?
DOTKERNEL API should support all grant Types available in oAUTH2.0 , yes grant_type=client_credentials is a requirement.. also please confirm if grant_type = code is working fine for version 6.0
@fmangat
In the past 7 years, we used only grant_type=password, that's why all other grant_types are not tested.
I am not sure if there is a demand for implementing other grant_types too, probably depends of the business case.
I am transforming now this issue in discussion, in order to collect feedback from other user too
Activity
alexmerlin commentedon Jun 23, 2025
Thanks @fmangat!
The issue you encountered is caused by not using the recommended
grant_type=passwordwhich makes sure that a user/admin will authenticate using an identity+password combination. Once the user is matched, the identity gets stored into theuser_idyou mentioned, so it will never benullfor successful authentications.We built Dotkernel API on the above scenario.
In your case, using a different
grant_typefollows a different auth flow, causing theuser_idcolumn not getting populated, hence the message User not found.Is using
grant_type=client_credentialsa requirement in your app?fmangat commentedon Jun 23, 2025
DOTKERNEL API should support all grant Types available in oAUTH2.0 , yes grant_type=client_credentials is a requirement.. also please confirm if grant_type = code is working fine for version 6.0
arhimede commentedon Jun 24, 2025
@fmangat
In the past 7 years, we used only
grant_type=password, that's why all othergrant_typesare not tested.I am not sure if there is a demand for implementing other
grant_typestoo, probably depends of the business case.I am transforming now this issue in discussion, in order to collect feedback from other user too