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

View File

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