reworked html serving, added new permissions for api/auth, updated adapters

This commit is contained in:
dswbx committed 2024-11-23 11:21:09 +01:00
1 parent 6077f0e64f
commit 2433833ad0
30 files changed
+418 -298

No files matched your search

+2 -2
View File
@@ -25,7 +25,7 @@ export function AuthLogin() {
//console.log("search", token, "/api/auth/google?redirect=" + window.location.href);
const auth = useAuth();
const { strategies, loading } = useAuthStrategies();
const { strategies, basepath, loading } = useAuthStrategies();
const [error, setError] = useState<string | null>(null);
useEffect(() => {
@@ -92,7 +92,7 @@ export function AuthLogin() {
variant="outline"
className="justify-center"
onClick={() => {
window.location.href = `/api/auth/${name}/login?redirect=${window.location.href}`;
window.location.href = `${basepath}/${name}/login?redirect=${window.location.href}`;
}}
>
Continue with {ucFirstAllSnakeToPascalWithSpaces(oauth.name)}