Skip to content

Commit

Permalink
Enable authentication action type.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thisara-Welmilla committed Jan 27, 2025
1 parent 6f52ef1 commit 500670d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public List<ApplicationAuthenticator> getAllAuthenticators(String tenantDomain)

return allAuthenticators;
} catch (AuthenticatorMgtException | IdentityProviderManagementException e) {
throw new RuntimeException("Error while getting all application authenticators.", e);
throw new FrameworkException("Error while getting all application authenticators.", e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ public static AuthenticationContext getContextData(HttpServletRequest request) t
List<ApplicationAuthenticator> authenticatorList = null;
try {
authenticatorList = ApplicationAuthenticatorManager.getInstance()
.getAllAuthenticators(reoslveTenantDomain(request));
.getAllAuthenticators(resolveTenantDomain(request));
} catch (FrameworkException e) {
throw new FrameworkRuntimeException("Error while getting all application authenticators.", e);
}
Expand Down Expand Up @@ -4527,7 +4527,7 @@ public static boolean isURLRelative(String uriString) throws URISyntaxException
return !new URI(uriString).isAbsolute();
}

private static String reoslveTenantDomain(HttpServletRequest request) {
private static String resolveTenantDomain(HttpServletRequest request) {

String tenantDomain;
if (IdentityTenantUtil.isTenantQualifiedUrlsEnabled()) {
Expand All @@ -4542,10 +4542,6 @@ private static String reoslveTenantDomain(HttpServletRequest request) {
if (StringUtils.isEmpty(tenantDomain)) {
tenantDomain = org.wso2.carbon.base.MultitenantConstants.SUPER_TENANT_DOMAIN_NAME;
}

if (log.isDebugEnabled()) {
log.debug("Resolved tenant domain: " + tenantDomain);
}
return tenantDomain;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1751,7 +1751,6 @@
"x-forwarded-uri"
],
"actions.types.pre_issue_access_token.enable": true,

"actions.types.pre_issue_access_token.action_request.excluded_headers": [
"dpop"
],
Expand All @@ -1768,7 +1767,7 @@
"client_assertion_type",
"client_assertion"
],
"actions.types.authentication.enable": false,
"actions.types.authentication.enable": true,

"oauth.authorize_all_scopes": false,
"oauth.enable_rich_authorization_requests" : true,
Expand Down

0 comments on commit 500670d

Please sign in to comment.