-
Notifications
You must be signed in to change notification settings - Fork 336
403 Forbidden on /oauth/check_token #28
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
Comments
The default setting is So maybe try in
and authenticate yourself, or |
@mariubog I tried what you suggested. It did not work either. possible I am doing my curl wrong
NOTE: I used BEARER with same token I got back from I get the following errror which is different than one above
I used
any help here is much appreciated |
If all permitted ("permitAll()") : If authentication required ("isAuthenticated()") : About It works assuming that you use Roy's example.Obviously you replace above token strings with your tokens. Good luck. |
@mariubog
I get
upon this
I get
why is Also how to exchange refresh token for access token expiry to get new access token? Thank you very much for help |
I've used
and it's working, but I agree with sridhar1982 on what he is asking: expires_in is expressed in seconds, I've changed the ClientDetailsServiceConfigurer access Token Validity to 60 sec..
but still getting exp as a static number |
@yalmuhaidib: how did you change the access Token validity to 60 sec. can you give the code snippet here. Also any idea on how to change the validity time for refresh token ? |
@sridhar1982,
|
I've checked sping code, the
while in
|
any input on how to set expiry for refresh token and how to exchange refresh token for a new access token once an access token is expired? and what is the practical difference between using |
@sridhar1982, the refresh token does not have expiry, it's used to acquire a new access token.. now how to use it, check the README in this projects (search for refresh_token) isAuthenticated and permitAll is Spring Security EL for expression support "permitAll Always evaluates to true" so any request on /check_token will be permitted even anonymous I'm closing this issue as it's solved.. |
thanks for all :) |
after acquiring a token from /oauth/token, I want to check if the token is valid or not by calling /oauth/check_token path
tried with GET also and got the same error response:
spring configures the mapping
how I can check the token validity?
The text was updated successfully, but these errors were encountered: