From 7bdafe246f77b81a9e27a9320ad387d5d50df72b Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 19 Feb 2024 16:25:57 +0800 Subject: [PATCH] :bug: Bug fix of bugs --- pkg/server/well_known_api.go | 4 ++-- pkg/view/src/layouts/RootLayout.tsx | 4 ++-- pkg/view/src/layouts/shared/{Navigatior.tsx => Navigator.tsx} | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename pkg/view/src/layouts/shared/{Navigatior.tsx => Navigator.tsx} (98%) diff --git a/pkg/server/well_known_api.go b/pkg/server/well_known_api.go index 78d85b8..2bfde58 100644 --- a/pkg/server/well_known_api.go +++ b/pkg/server/well_known_api.go @@ -21,8 +21,8 @@ func getOidcConfiguration(c *fiber.Ctx) error { return c.JSON(fiber.Map{ "issuer": basepath, - "authorization_endpoint": fmt.Sprintf("%s/authMiddleware/o/connect", basepath), - "token_endpoint": fmt.Sprintf("%s/api/authMiddleware/token", basepath), + "authorization_endpoint": fmt.Sprintf("%s/auth/o/connect", basepath), + "token_endpoint": fmt.Sprintf("%s/api/auth/token", basepath), "userinfo_endpoint": fmt.Sprintf("%s/api/users/me", basepath), "response_types_supported": []string{"code", "token"}, "grant_types_supported": []string{"authorization_code", "implicit", "refresh_token"}, diff --git a/pkg/view/src/layouts/RootLayout.tsx b/pkg/view/src/layouts/RootLayout.tsx index 279672f..828f538 100644 --- a/pkg/view/src/layouts/RootLayout.tsx +++ b/pkg/view/src/layouts/RootLayout.tsx @@ -1,4 +1,4 @@ -import Navigatior from "./shared/Navigatior.tsx"; +import Navigator from "./shared/Navigator.tsx"; import { readProfiles, useUserinfo } from "../stores/userinfo.tsx"; import { createEffect, createMemo, createSignal, Show } from "solid-js"; import { readWellKnown } from "../stores/wellKnown.tsx"; @@ -52,7 +52,7 @@ export default function RootLayout(props: any) { }> - +
{props.children}
diff --git a/pkg/view/src/layouts/shared/Navigatior.tsx b/pkg/view/src/layouts/shared/Navigator.tsx similarity index 98% rename from pkg/view/src/layouts/shared/Navigatior.tsx rename to pkg/view/src/layouts/shared/Navigator.tsx index 30b75a3..38372da 100644 --- a/pkg/view/src/layouts/shared/Navigatior.tsx +++ b/pkg/view/src/layouts/shared/Navigator.tsx @@ -8,7 +8,7 @@ interface MenuItem { children?: MenuItem[]; } -export default function Navigatior() { +export default function Navigator() { const nav: MenuItem[] = [ { label: "You", children: [