mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-10 15:32:05 -03:30
Remove the trailing slash for base url in the account and admin tests
Closes #43863 Signed-off-by: rmartinc <rmartinc@redhat.com>
This commit is contained in:
parent
74e5da49c7
commit
475d2c0f02
@ -58,12 +58,12 @@ test.describe("Linked accounts", () => {
|
||||
clientId: "groups-idp",
|
||||
clientSecret: "H0JaTc7VBu3HJR26vrzMxgidfJmgI5Dw",
|
||||
validateSignature: "false",
|
||||
tokenUrl: `${SERVER_URL}realms/${externalTestBed.realm}/protocol/openid-connect/token`,
|
||||
jwksUrl: `${SERVER_URL}realms/${externalTestBed.realm}/protocol/openid-connect/certs`,
|
||||
issuer: `${SERVER_URL}realms/${externalTestBed.realm}`,
|
||||
authorizationUrl: `${SERVER_URL}realms/${externalTestBed.realm}/protocol/openid-connect/auth`,
|
||||
logoutUrl: `${SERVER_URL}realms/${externalTestBed.realm}/protocol/openid-connect/logout`,
|
||||
userInfoUrl: `${SERVER_URL}realms/${externalTestBed.realm}/protocol/openid-connect/userinfo`,
|
||||
tokenUrl: `${SERVER_URL}/realms/${externalTestBed.realm}/protocol/openid-connect/token`,
|
||||
jwksUrl: `${SERVER_URL}/realms/${externalTestBed.realm}/protocol/openid-connect/certs`,
|
||||
issuer: `${SERVER_URL}/realms/${externalTestBed.realm}`,
|
||||
authorizationUrl: `${SERVER_URL}/realms/${externalTestBed.realm}/protocol/openid-connect/auth`,
|
||||
logoutUrl: `${SERVER_URL}/realms/${externalTestBed.realm}/protocol/openid-connect/logout`,
|
||||
userInfoUrl: `${SERVER_URL}/realms/${externalTestBed.realm}/protocol/openid-connect/userinfo`,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@ import type UserRepresentation from "@keycloak/keycloak-admin-client/lib/defs/us
|
||||
import { ADMIN_PASSWORD, ADMIN_USERNAME, SERVER_URL } from "./common.ts";
|
||||
|
||||
export const adminClient = new AdminClient({
|
||||
baseUrl: SERVER_URL.toString(),
|
||||
baseUrl: SERVER_URL,
|
||||
});
|
||||
|
||||
await adminClient.auth({
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import type UserRepresentation from "@keycloak/keycloak-admin-client/lib/defs/userRepresentation.js";
|
||||
import { generatePath } from "react-router-dom";
|
||||
|
||||
export const SERVER_URL = new URL("http://localhost:8080");
|
||||
export const SERVER_URL = "http://localhost:8080";
|
||||
export const ACCOUNT_ROOT_PATH = "/realms/:realm/account" as const;
|
||||
export const ADMIN_ROOT_PATH = "/admin/:realm/console" as const;
|
||||
export const DEFAULT_REALM = "master";
|
||||
|
||||
@ -13,7 +13,7 @@ import type { Credentials } from "@keycloak/keycloak-admin-client/lib/utils/auth
|
||||
|
||||
class AdminClient {
|
||||
readonly #client = new KeycloakAdminClient({
|
||||
baseUrl: "http://localhost:8080/",
|
||||
baseUrl: "http://localhost:8080",
|
||||
realmName: "master",
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user