コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

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 受け入れられたソリューション

Avatar

正解者
Level 10
5 返信

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

正解者
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