mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-01 14:41:46 +00:00
[MNT-24859] Added redirect path configuration
This commit is contained in:
@@ -76,6 +76,17 @@ public class IdentityServiceConfig
|
|||||||
private String lastNameAttribute;
|
private String lastNameAttribute;
|
||||||
private String emailAttribute;
|
private String emailAttribute;
|
||||||
private long jwtClockSkewMs;
|
private long jwtClockSkewMs;
|
||||||
|
private String webScriptHomeRedirectPath;
|
||||||
|
|
||||||
|
public String getWebScriptHomeRedirectPath()
|
||||||
|
{
|
||||||
|
return webScriptHomeRedirectPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWebScriptHomeRedirectPath(String webScriptHomeRedirectPath)
|
||||||
|
{
|
||||||
|
this.webScriptHomeRedirectPath = webScriptHomeRedirectPath;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@@ -70,7 +70,6 @@ public class IdentityServiceAdminConsoleAuthenticator implements AdminConsoleAut
|
|||||||
private static final String ALFRESCO_ACCESS_TOKEN = "ALFRESCO_ACCESS_TOKEN";
|
private static final String ALFRESCO_ACCESS_TOKEN = "ALFRESCO_ACCESS_TOKEN";
|
||||||
private static final String ALFRESCO_REFRESH_TOKEN = "ALFRESCO_REFRESH_TOKEN";
|
private static final String ALFRESCO_REFRESH_TOKEN = "ALFRESCO_REFRESH_TOKEN";
|
||||||
private static final String ALFRESCO_TOKEN_EXPIRATION = "ALFRESCO_TOKEN_EXPIRATION";
|
private static final String ALFRESCO_TOKEN_EXPIRATION = "ALFRESCO_TOKEN_EXPIRATION";
|
||||||
private static final String ALFRESCO_WEB_SCRIPT_PATH = "/alfresco/s/index";
|
|
||||||
|
|
||||||
private IdentityServiceConfig identityServiceConfig;
|
private IdentityServiceConfig identityServiceConfig;
|
||||||
private IdentityServiceFacade identityServiceFacade;
|
private IdentityServiceFacade identityServiceFacade;
|
||||||
@@ -241,7 +240,7 @@ public class IdentityServiceAdminConsoleAuthenticator implements AdminConsoleAut
|
|||||||
{
|
{
|
||||||
URI originalUri = new URI(requestURL);
|
URI originalUri = new URI(requestURL);
|
||||||
String redirectPath = identityServiceConfig.getAdminConsoleRedirectPath();
|
String redirectPath = identityServiceConfig.getAdminConsoleRedirectPath();
|
||||||
if (originalUri.getPath().equals(ALFRESCO_WEB_SCRIPT_PATH))
|
if (originalUri.getPath().equals(identityServiceConfig.getWebScriptHomeRedirectPath()))
|
||||||
{
|
{
|
||||||
redirectPath = originalUri.getPath();
|
redirectPath = originalUri.getPath();
|
||||||
}
|
}
|
||||||
|
@@ -179,6 +179,9 @@
|
|||||||
<property name="jwtClockSkewMs">
|
<property name="jwtClockSkewMs">
|
||||||
<value>${identity-service.jwt-clock-skew-ms:0}</value>
|
<value>${identity-service.jwt-clock-skew-ms:0}</value>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="webScriptHomeRedirectPath">
|
||||||
|
<value>${identity-service.webscript-home.redirect-path}</value>
|
||||||
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- Enable control over mapping between request and user ID -->
|
<!-- Enable control over mapping between request and user ID -->
|
||||||
|
@@ -12,6 +12,7 @@ identity-service.resource=alfresco
|
|||||||
identity-service.credentials.secret=
|
identity-service.credentials.secret=
|
||||||
identity-service.public-client=true
|
identity-service.public-client=true
|
||||||
identity-service.admin-console.redirect-path=/alfresco/s/admin/admin-communitysummary
|
identity-service.admin-console.redirect-path=/alfresco/s/admin/admin-communitysummary
|
||||||
|
identity-service.webscript-home.redirect-path=/alfresco/s/index
|
||||||
identity-service.signature-algorithms=RS256,PS256
|
identity-service.signature-algorithms=RS256,PS256
|
||||||
identity-service.first-name-attribute=given_name
|
identity-service.first-name-attribute=given_name
|
||||||
identity-service.last-name-attribute=family_name
|
identity-service.last-name-attribute=family_name
|
||||||
|
Reference in New Issue
Block a user