[Fixes #19852] Remove leading slash on authorization links (#20026)

* Makes the Uris base relative instead host relative.
This commit is contained in:
Miroslav Kovač 2020-03-26 15:34:46 +01:00 committed by GitHub
parent 38a4f20d68
commit cfac5edd15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -23,7 +23,7 @@ export const LoginActions = {
let applicationPaths: ApplicationPathsType = {
DefaultLoginRedirectPath: '/',
ApiAuthorizationClientConfigurationUrl: `/_configuration/${ApplicationName}`,
ApiAuthorizationClientConfigurationUrl: `_configuration/${ApplicationName}`,
Login: `authentication/${LoginActions.Login}`,
LoginFailed: `authentication/${LoginActions.LoginFailed}`,
LoginCallback: `authentication/${LoginActions.LoginCallback}`,
@ -40,8 +40,8 @@ let applicationPaths: ApplicationPathsType = {
LogOutPathComponents: [],
LoggedOutPathComponents: [],
LogOutCallbackPathComponents: [],
IdentityRegisterPath: '/Identity/Account/Register',
IdentityManagePath: '/Identity/Account/Manage'
IdentityRegisterPath: 'Identity/Account/Register',
IdentityManagePath: 'Identity/Account/Manage'
};
applicationPaths = {

View File

@ -23,7 +23,7 @@ const prefix = '/authentication';
export const ApplicationPaths = {
DefaultLoginRedirectPath: '/',
ApiAuthorizationClientConfigurationUrl: `/_configuration/${ApplicationName}`,
ApiAuthorizationClientConfigurationUrl: `_configuration/${ApplicationName}`,
ApiAuthorizationPrefix: prefix,
Login: `${prefix}/${LoginActions.Login}`,
LoginFailed: `${prefix}/${LoginActions.LoginFailed}`,
@ -33,6 +33,6 @@ export const ApplicationPaths = {
LogOut: `${prefix}/${LogoutActions.Logout}`,
LoggedOut: `${prefix}/${LogoutActions.LoggedOut}`,
LogOutCallback: `${prefix}/${LogoutActions.LogoutCallback}`,
IdentityRegisterPath: '/Identity/Account/Register',
IdentityManagePath: '/Identity/Account/Manage'
IdentityRegisterPath: 'Identity/Account/Register',
IdentityManagePath: 'Identity/Account/Manage'
};