It's less confusing to use "#" as urls in mock kcContext
This commit is contained in:
@ -87,12 +87,9 @@ export const kcContextCommonMock: KcContext.Common = {
|
|||||||
loginAction: "#",
|
loginAction: "#",
|
||||||
resourcesPath,
|
resourcesPath,
|
||||||
resourcesCommonPath: `${resourcesPath}/${resources_common}`,
|
resourcesCommonPath: `${resourcesPath}/${resources_common}`,
|
||||||
loginRestartFlowUrl:
|
loginRestartFlowUrl: "#",
|
||||||
"/auth/realms/myrealm/login-actions/restart?client_id=account&tab_id=HoAx28ja4xg",
|
loginUrl: "#",
|
||||||
loginUrl:
|
ssoLoginInOtherTabsUrl: "#"
|
||||||
"/auth/realms/myrealm/login-actions/authenticate?client_id=account&tab_id=HoAx28ja4xg",
|
|
||||||
ssoLoginInOtherTabsUrl:
|
|
||||||
"/auth/realms/myrealm/login-actions/switch?client_id=account&tab_id=HoAx28ja4xg"
|
|
||||||
},
|
},
|
||||||
realm: {
|
realm: {
|
||||||
name: "myrealm",
|
name: "myrealm",
|
||||||
@ -160,13 +157,10 @@ export const kcContextCommonMock: KcContext.Common = {
|
|||||||
|
|
||||||
const loginUrl = {
|
const loginUrl = {
|
||||||
...kcContextCommonMock.url,
|
...kcContextCommonMock.url,
|
||||||
loginResetCredentialsUrl:
|
loginResetCredentialsUrl: "#",
|
||||||
"/auth/realms/myrealm/login-actions/reset-credentials?client_id=account&tab_id=HoAx28ja4xg",
|
registrationUrl: "#",
|
||||||
registrationUrl:
|
oauth2DeviceVerificationAction: "#",
|
||||||
"/auth/realms/myrealm/login-actions/registration?client_id=account&tab_id=HoAx28ja4xg",
|
oauthAction: "#"
|
||||||
oauth2DeviceVerificationAction: "/auth/realms/myrealm/device",
|
|
||||||
oauthAction:
|
|
||||||
"/auth/realms/myrealm/login-actions/consent?client_id=account&tab_id=HoAx28ja4xg"
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const kcContextMocks = [
|
export const kcContextMocks = [
|
||||||
@ -194,8 +188,7 @@ export const kcContextMocks = [
|
|||||||
...kcContextCommonMock,
|
...kcContextCommonMock,
|
||||||
url: {
|
url: {
|
||||||
...loginUrl,
|
...loginUrl,
|
||||||
registrationAction:
|
registrationAction: "#"
|
||||||
"http://localhost:8080/auth/realms/myrealm/login-actions/registration?session_code=gwZdUeO7pbYpFTRxiIxRg_QtzMbtFTKrNu6XW_f8asM&execution=12146ce0-b139-4bbd-b25b-0eccfee6577e&client_id=account&tab_id=uS8lYfebLa0"
|
|
||||||
},
|
},
|
||||||
isAppInitiatedAction: false,
|
isAppInitiatedAction: false,
|
||||||
passwordRequired: true,
|
passwordRequired: true,
|
||||||
@ -445,7 +438,7 @@ export const kcContextMocks = [
|
|||||||
...kcContextCommonMock,
|
...kcContextCommonMock,
|
||||||
pageId: "saml-post-form.ftl",
|
pageId: "saml-post-form.ftl",
|
||||||
samlPost: {
|
samlPost: {
|
||||||
url: ""
|
url: "#"
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
id<KcContext.LoginPageExpired>({
|
id<KcContext.LoginPageExpired>({
|
||||||
|
Reference in New Issue
Block a user