I can obtain token in oauth2 Client Credentials flow for non confidential user #88
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
KittenSquad/glewlwyd#88
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the issue
User without marked "Confidential" checkbox can obtain proper token in oauth2 Client Credentials flow
To Reproduce
Start new docker instance
docker run --rm -it -p 4593:4593 src:20200110Add client to default "Database backend user module" (I only filled "Client ID": test1, "Name": test1, "Password", "Scope": openid and "Authorization types": client_credentials.
Confidential is not marked).
Also add oauth2 plugin (I only filled name: "oauth2", display name: "oauth2", and Tokens signature - JWT type: "RSA", Key size: "512 bits", and public and private key).
I can get proper token (in oauth2 Client Credentials flow) for this client.
Expected behavior
You can't get token in this flow for client which isn't confidential.
Screenshots

Hello @rurus9 ,
Thenka for reporting the issue, this has been fixed in
github.com/babelouest/glewlwyd@93301a2529, can you check the new version?Yes, now (i built docker today) it's OK.
Thank you