-
Notifications
You must be signed in to change notification settings - Fork 396
Add refresh token support for impersonation flow #2950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5882,6 +5882,23 @@ public static HashSet<ClientAuthenticationMethodModel> getSupportedAuthenticatio | |
return supportedClientAuthMethods; | ||
} | ||
|
||
/** | ||
* Check if impersonated refresh token is enabled. | ||
* | ||
* @return True if impersonated refresh token is enabled. | ||
*/ | ||
public static boolean isImpersonatedRefreshTokenEnabled() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't this be a app level config? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we are not introducing app level config with this PR, cause for app level config we have to change API, UI and integration tests and it would take a week to do it |
||
|
||
if (IdentityUtil.getProperty(OAuth2Constants.IMPERSONATED_REFRESH_TOKEN_ENABLE) != null) { | ||
return Boolean.parseBoolean(IdentityUtil.getProperty(OAuth2Constants.IMPERSONATED_REFRESH_TOKEN_ENABLE)); | ||
} | ||
if (log.isDebugEnabled()) { | ||
log.debug("Impersonated refresh token configuration not found, " + | ||
"using default: " + OAuth2Constants.DEFAULT_IMPERSONATED_REFRESH_TOKEN_ENABLED); | ||
} | ||
return OAuth2Constants.DEFAULT_IMPERSONATED_REFRESH_TOKEN_ENABLED; | ||
} | ||
|
||
/** | ||
* Check if token persistence is enabled. | ||
* | ||
|
Uh oh!
There was an error while loading. Please reload this page.