mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(api): 🐛 Fix incorrect order of function parameters
This commit is contained in:
parent
d84ae38573
commit
d2dcdce763
|
|
@ -119,8 +119,8 @@ export default (plugin: PluginType) => {
|
||||||
{
|
{
|
||||||
client_id: issuer.client_id,
|
client_id: issuer.client_id,
|
||||||
redirect_uri: `${oauthRedirectUri(
|
redirect_uri: `${oauthRedirectUri(
|
||||||
issuerId,
|
|
||||||
context.get("config").http.base_url,
|
context.get("config").http.base_url,
|
||||||
|
issuerId,
|
||||||
)}?flow=${newFlow.id}`,
|
)}?flow=${newFlow.id}`,
|
||||||
response_type: "code",
|
response_type: "code",
|
||||||
scope: "openid profile email",
|
scope: "openid profile email",
|
||||||
|
|
|
||||||
|
|
@ -164,8 +164,8 @@ export default (plugin: PluginType) => {
|
||||||
const codeVerifier = generateRandomCodeVerifier();
|
const codeVerifier = generateRandomCodeVerifier();
|
||||||
|
|
||||||
const redirectUri = oauthRedirectUri(
|
const redirectUri = oauthRedirectUri(
|
||||||
issuerId,
|
|
||||||
context.get("config").http.base_url,
|
context.get("config").http.base_url,
|
||||||
|
issuerId,
|
||||||
);
|
);
|
||||||
|
|
||||||
const application = (
|
const application = (
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
import { config } from "~/packages/config-manager/index.ts";
|
import { config } from "~/packages/config-manager/index.ts";
|
||||||
|
|
||||||
export const oauthRedirectUri = (issuer: string) =>
|
|
||||||
new URL(`/oauth/sso/${issuer}/callback`, config.http.base_url).toString();
|
|
||||||
|
|
||||||
export const localObjectUri = (id: string) =>
|
export const localObjectUri = (id: string) =>
|
||||||
new URL(`/objects/${id}`, config.http.base_url).toString();
|
new URL(`/objects/${id}`, config.http.base_url).toString();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue