There is 1 update.
 
 
OpenId Connect / cid:jira-generated-image-avatar-1ac281f5-ff4c-44aa-9b02-52d8405ee24a OIDC-245 Open

OAuth access token is renewed everytime its retrieved from the store

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-15e997ca-a1cb-4dd6-8532-3f9faa935f42 Changes by Teodor Caras on 16/Jul/25 08:01
 
Description: When trying to retrieve the access token through the `OAuth2ClientScriptService` a new one is returned each time. This suggests that a new call to the OAuth2 provider is made with each request.

To reproduce the issue:
# Configure a OAuth2 client in XWiki.
# Authorize the client to the provider using `OAuth2ClientScriptService#authorize(cfgName, redirect)`
# Call `OAuth2ClientScriptService#getAccessToken(cfgName)` twice

Excepted:

The same access token should be provided

Actual:

Two different access tokens are provided