Skip to content
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

How do I disable token lifetime in WSSE Authentication? #805

Open
pedrofurtado opened this issue Feb 6, 2018 · 7 comments
Open

How do I disable token lifetime in WSSE Authentication? #805

pedrofurtado opened this issue Feb 6, 2018 · 7 comments

Comments

@pedrofurtado
Copy link
Contributor

How do I disable token lifetime (i.e., to make tokens not expirable) in WSSE Authentication?

@vsoroka
Copy link
Contributor

vsoroka commented Feb 8, 2018

It is not possible to disable the token lifetime, but you can set a very big value for it, e.g. 30 days.
To do it you can use /app/config/security.yml.
Here is an example:

security:
    firewalls:
        wsse_secured:
            wsse:
                lifetime: 2592000 # 30 days
        api_wsse_secured:
            wsse:
                lifetime: 2592000 # 30 days

@pedrofurtado
Copy link
Contributor Author

@vsoroka Thanks, man! I'll configure my security.yml just like your answer.

@pedrofurtado
Copy link
Contributor Author

pedrofurtado commented Feb 8, 2018

I've made a pull request on EscapeWSSEAuthenticationBundle (https://github.com/djoos/EscapeWSSEAuthenticationBundle), to enable this feature.

djoos/EscapeWSSEAuthenticationBundle#90

Edit: This feature is available only in version 2.3.0 and higher, but OroPlatform uses version 1.0.2.

@vsoroka
Copy link
Contributor

vsoroka commented Feb 8, 2018

I've created an internal task BAP-13002 where we will upgrade the platform to the latest version of EscapeWSSEAuthenticationBundle

@pedrofurtado
Copy link
Contributor Author

@vsoroka Thanks for feedback! My pull request was merged in EscapeWSSEAuthenticationBundle.

Do you have a estimative about when it will be released this version with the latest version of EscapeWSSEAuthenticationBundle?

Thanks!

@vsoroka
Copy link
Contributor

vsoroka commented Feb 8, 2018

Sorry, but as far as I know, for now we do not have any plans about this task.
If it is important for you, welcome to create a pull request.
Thanks!

@pedrofurtado
Copy link
Contributor Author

@vsoroka There is a temporary solution (until OroPlatform upgrades the version of the EscapeWSSEAuthenticationBundle dependency), here is the link: https://oroinc.com/orocrm/forums/topic/how-do-i-disable-token-lifetime-in-wsse-authentication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants