Expand my Community achievements bar.

SOLVED

An Example use case for a custom tokenprovider in OAK2?

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10
5 Replies

Avatar

Level 10

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

Avatar

Correct answer by
Level 10

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

 

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

Avatar

Level 10

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.

Avatar

Level 2

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.

Avatar

Level 1

Hi Lokesh,

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

Any pointer you can give would be helpful.

-Nitya