jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ignasi Barrera (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCLOUDS-708) GCS does not renew its authorization token periodically
Date Fri, 27 Feb 2015 09:32:04 GMT

    [ https://issues.apache.org/jira/browse/JCLOUDS-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14339934#comment-14339934
] 

Ignasi Barrera commented on JCLOUDS-708:
----------------------------------------

Another approach (a bit more hardcoded, though) would be the one used in the Abiquo provider:
https://github.com/jclouds/jclouds-labs/blob/master/abiquo/src/main/java/org/jclouds/abiquo/config/AbiquoAuthenticationModule.java#L66-L71

It basically caches the authorization token with the cache configured with the same expiration
than the token. That cache is build with a function that provides a new token given the credentials,
so the auto-renew just works out of the box. Just another idea :)

> GCS does not renew its authorization token periodically
> -------------------------------------------------------
>
>                 Key: JCLOUDS-708
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-708
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-blobstore
>    Affects Versions: 1.8.1
>            Reporter: Andrew Gaul
>              Labels: google-cloud-storage
>
> While testing the latest GCS pull request[1] I found that starting my application then
waiting 12 hours resulted in authentication errors:
> {noformat}
> org.jclouds.rest.AuthorizationException: {
>  "error": {
>   "errors": [
>    {
>     "domain": "global",
>     "reason": "authError",
>     "message": "Invalid Credentials",
>     "locationType": "header",
>     "location": "Authorization"
>    }
>   ],
>   "code": 401,
>   "message": "Invalid Credentials"
>  }
> }
> {noformat}
> Restarting my application worked around this issue although GCS should renew its authorization
token periodically as other providers do.
> [1] https://github.com/jclouds/jclouds-labs-google/pull/48



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message