Hi all,
I'm using CAS 5.3.7 and I'm working on the OAuth authentication following 
the guide [1]. I need to use the Resource Owner Credentials [2].
I'm calling the endpoint */oauth2.0/accessToken *passing the parameters 
*grant_type=password&client_id=ID&client_secret=<SECRET>&username=USERNAME&password=PASSWORD*
 
(obviously). 
With the same user's credentials passed to the previous call I'm able to 
login successfully inside CAS.
The issue for me is: if during the call at the endpoint */oauth2.0/accessToken 
*I set, in the parameters, a wrong username and/or a wrong password I'm 
always able to get the Access Token. 
I tried to search inside the code where the authentication, in this 
endpoint, should be done but I was not able to find it.
Is it possible that the authentication, for this endpoint, is never done?

Thanks all for your support.
Best regards,
Lorenzo Di Cola

[1] 
https://apereo.github.io/cas/5.3.x/installation/OAuth-OpenId-Authentication.html#oauthopenid-authentication
[2] 
https://apereo.github.io/cas/5.3.x/installation/OAuth-OpenId-Authentication.html#resource-owner-credentials

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/15e21bd0-796a-4849-aac4-79f36387f9a9%40apereo.org.

Reply via email to