An Example use case for a custom tokenprovider in OAK2? | Community
Skip to main content
Level 2
Mar 1, 2016 8:46 AM UTC
Solved

An Example use case for a custom tokenprovider in OAK2?

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.
Sham_HC
Sham_HCAccepted solution
Level 10
Mar 1, 2016 6:11 PM UTC

5 replies

nityanandab6270
New Participant
Nov 29, 2019 4:49 AM UTC

Hi Lokesh,

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

Any pointer you can give would be helpful.

-Nitya

Translate
Level 2
Sep 30, 2016 5:56 AM UTC

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.

Translate
Lokesh_Shivalingaiah
Level 10
Mar 1, 2016 9:34 PM UTC

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.

Translate
Sham_HC
Sham_HCAccepted solution
Level 10
Mar 1, 2016 6:11 PM UTC
Lokesh_Shivalingaiah
Level 10
Mar 1, 2016 5:26 PM UTC

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

Translate