[
https://issues.apache.org/jira/browse/CXF-4670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509076#comment-13509076
]
Steven Tippetts commented on CXF-4670:
--------------------------------------
Not really. In my ImplicitDataProvider object, in the getClient is where I do
my database calls to get client information, including the token life for this
client. I then use the token life number in both createAccessToken and
getAccessToken when I create BearerAccessTokens (which is an AccessToken and
has its expiresIn property set by the value I pass in). If I don't save the
token life value in Client during getClient then I'll have to hit the database
again in both createAccessToken and getAccessToken.
> [OAuth2] Add tokenLife property to
> org.apache.cxf.rs.security.oauth2.common.Client
> ----------------------------------------------------------------------------------
>
> Key: CXF-4670
> URL: https://issues.apache.org/jira/browse/CXF-4670
> Project: CXF
> Issue Type: Improvement
> Components: JAX-RS Security
> Affects Versions: 2.7.0
> Reporter: Steven Tippetts
> Priority: Minor
>
> I'm currently extending Client to get this property, so it's no big deal for
> me; however, I'm thinking this may have wider appeal and be a good addition
> to the library.
> My clients have different token lives so tokenLife helps me keep track of
> them.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira