An Example use case for a custom tokenprovider in OAK2? | Community
Skip to main content
Level 2
March 1, 2016
Solved

An Example use case for a custom tokenprovider in OAK2?

  • March 1, 2016
  • 5 replies
  • 1965 views

Hi,

I have the need to control the expiration time of login-token cookie in AEM 6.1 using oak2 as the repository.

Referring http://jackrabbit.apache.org/oak/docs/security/authentication/tokenmanagement.html I understand that it could possibly be done by a Custom token provider, so I am looking for an example of the same if any?

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

To control the login time configure at  http://<host>:<port>/system/console/configMgr/org.apache.jackrabbit.oak.security.authentication.token.TokenConfigurationImpl   . Example [A] & no need to develop one.

 

[A]   http://www.aemstuff.com/#article964

5 replies

Lokesh_Shivalingaiah
Level 10
March 1, 2016

It can be customized but I don't think we have any good examples now. I will try to get one soon!

Sham_HC
Sham_HCAccepted solution
Level 10
March 1, 2016
Lokesh_Shivalingaiah
Level 10
March 1, 2016

Sorry my bad !! didnt look at this option which is already available ! As Sham mentioned, you can change the token expiration property in the above configuration.

Level 2
September 30, 2016

In case of custom authhandler where we want only users for our site has token expiration provided by our site specific configuration. Because OOTB configuration will impact token time expiration for whole instance which we don't want. I needed this scenario. If anyone has the sample code to provide will be real help.

nityanandab6270
November 29, 2019

Hi Lokesh,

We have a similar problem; did you manage to find a solution?

Any pointer you can give would be helpful.

-Nitya