You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Authorization fails when using a previously used access token. This issue happens because of scopes are not populating properly in the runtime:principal for cached oauth2 tokens Steps to reproduce:
Following logs can be observed for the API calls and in the second API call, scopes are not attached to the cache key. Cache keys are different for the same oauth2 token (second key the scopes are missing).
First API call 2021-10-29 15:10:15,735 DEBUG [ballerina/cache] - Cache entry from the given key: admin@carbon.super-Consumer_hyphen_Data_hyphen_Standards__v1-getb9a42d1a61864a709d93108ef2f2e63c-GET-default,, is not available. 2021-10-29 15:10:15,739 DEBUG [ballerina/cache] - Cache entry from the given key: admin@carbon.super-Consumer_hyphen_Data_hyphen_Standards__v1-getb9a42d1a61864a709d93108ef2f2e63c-GET-default,, is not available.
Second API call 2021-10-29 15:12:10,602 DEBUG [ballerina/cache] - Cache entry from the given key: admin@carbon.super-Consumer_hyphen_Data_hyphen_Standards__v1-getb9a42d1a61864a709d93108ef2f2e63c-GET, is not available. 2021-10-29 15:12:10,603 DEBUG [ballerina/cache] - Cache entry from the given key: admin@carbon.super-Consumer_hyphen_Data_hyphen_Standards__v1-getb9a42d1a61864a709d93108ef2f2e63c-GET, is not available.
Affected Versions:
1.2.x
OS, DB, other environment details and versions:
Microgateway-toolkit-3.2
The text was updated successfully, but these errors were encountered:
chashikajw
changed the title
[1.2.x] Scopes are not populating properly in the runtime:principal for caches oauth2 tokens
[1.2.x] Scopes are not populating properly in the runtime:principal for cached oauth2 tokens
Oct 31, 2021
Description:
Authorization fails when using a previously used access token. This issue happens because of scopes are not populating properly in the runtime:principal for cached oauth2 tokens
Steps to reproduce:
Following logs can be observed for the API calls and in the second API call, scopes are not attached to the cache key. Cache keys are different for the same oauth2 token (second key the scopes are missing).
First API call
2021-10-29 15:10:15,735 DEBUG [ballerina/cache] - Cache entry from the given key: admin@carbon.super-Consumer_hyphen_Data_hyphen_Standards__v1-getb9a42d1a61864a709d93108ef2f2e63c-GET-default,, is not available. 2021-10-29 15:10:15,739 DEBUG [ballerina/cache] - Cache entry from the given key: admin@carbon.super-Consumer_hyphen_Data_hyphen_Standards__v1-getb9a42d1a61864a709d93108ef2f2e63c-GET-default,, is not available.
Second API call
2021-10-29 15:12:10,602 DEBUG [ballerina/cache] - Cache entry from the given key: admin@carbon.super-Consumer_hyphen_Data_hyphen_Standards__v1-getb9a42d1a61864a709d93108ef2f2e63c-GET, is not available. 2021-10-29 15:12:10,603 DEBUG [ballerina/cache] - Cache entry from the given key: admin@carbon.super-Consumer_hyphen_Data_hyphen_Standards__v1-getb9a42d1a61864a709d93108ef2f2e63c-GET, is not available.
Affected Versions:
1.2.x
OS, DB, other environment details and versions:
Microgateway-toolkit-3.2
The text was updated successfully, but these errors were encountered: