ging / fiware-idm-deprecated

DEPRECATED - Identity Manager - Keyrock
Apache License 2.0
18 stars 25 forks source link

OAuth2 token is not expiring #53

Closed tevuore closed 8 years ago

tevuore commented 8 years ago

I'm using PEP Proxy with my own Keyrock installation. I noticed that with keystone token (pep-proxy keystone mode) tokens expire but not oauth2 tokens.

I have used Password Credentials Grant and response from Keyrock has expires_in=3600 which is seconds. However I haven't seen token to expire ever.

The URL PEP Proxy uses is :/v3/access-tokens/.

Either

Regards, -Tero

federicofdez commented 8 years ago

Hi @tevuore ,

After looking deeply into this issue, it turns out that there was indeed a problem when validating OAuth2 tokens. I just fixed this in https://github.com/ging/keystone/commit/b78fed76d6c22f97315b9d1fb31df1bb5082bae4, so that a 401 Unauthorized error code is returned when the token has expired.

Everything should now work as expected, but please, feel free to reopen this issue if there is still anything not working properly.

Thank you very much for reporting this issue.

Regards, Federico Fernández