You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2013/09/13 12:59:14 UTC

[jira] [Assigned] (CXF-3932) RSTR Lifetime element sets current time in Created element

     [ https://issues.apache.org/jira/browse/CXF-3932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh reassigned CXF-3932:
----------------------------------------

    Assignee: Colm O hEigeartaigh
    
> RSTR Lifetime element sets current time in Created element
> ----------------------------------------------------------
>
>                 Key: CXF-3932
>                 URL: https://issues.apache.org/jira/browse/CXF-3932
>             Project: CXF
>          Issue Type: Improvement
>          Components: Services
>    Affects Versions: 2.5
>            Reporter: Oliver Wulff
>            Assignee: Colm O hEigeartaigh
>
> The Created element of the RSTR lifetime element is set to the current time. Therefore, it doesn't match with the condition element in the SAML token.
> CXF-3931 added support for lifetime element in RST in DefaultConditionsProvider.
> It's the decision of the STS from when till when a token is valid. This logic is in the DefaultConditionsProvider in case of SAML. The information put into the Condition element can't be set on the lifetime element of the RSTR because:
> - TokenProviderResponse only provides the method (no from, till semantic)
> public long getLifetime()
> - If lifetime is below 5 minutes, the RSTR lifetime element is set to 5 minutes:
>     protected static LifetimeType createLifetime(long lifetime) {
> ...        
>         Date creationTime = new Date();
>         Date expirationTime = new Date();
>         if (lifetime <= 0) {
>             lifetime = 300L;
>         }

--
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