Add oauth origin for client config
This commit is contained in:
parent
2ffa095303
commit
5f712f87f3
@ -190,7 +190,7 @@ const PreviewDialog = ({
|
|||||||
|
|
||||||
const getLink = () => {
|
const getLink = () => {
|
||||||
return `${
|
return `${
|
||||||
window.location.origin
|
window?.ClientConfig?.oauth2.origin
|
||||||
}/oauth2/authorize?response_type=code&client_id=${client?.clientId}&redirect_uri=${
|
}/oauth2/authorize?response_type=code&client_id=${client?.clientId}&redirect_uri=${
|
||||||
client?.redirectUris[0]
|
client?.redirectUris[0]
|
||||||
}&scope=${encodingScopes}&state=${state}${
|
}&scope=${encodingScopes}&state=${state}${
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"date": "2024628_173723",
|
"date": "2024628_183746",
|
||||||
"checksums": {
|
"checksums": {
|
||||||
"api.js": "0efbae3383bf6c6b6f26d573eee164d2",
|
"api.js": "0efbae3383bf6c6b6f26d573eee164d2",
|
||||||
"api.poly.js": "2a2ac2c0e4a7007b61d2d1ff7b00a22e",
|
"api.poly.js": "2a2ac2c0e4a7007b61d2d1ff7b00a22e",
|
||||||
"browserDetector.js": "d9387cce805699498e798230a8639c8a",
|
"browserDetector.js": "d9387cce805699498e798230a8639c8a",
|
||||||
"config.json": "1cc6da8a9d43cda405c4f85b0e6039e4"
|
"config.json": "47a314898c8968fab7565d975e0fb828"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -112,6 +112,9 @@ declare global {
|
|||||||
url?: string;
|
url?: string;
|
||||||
};
|
};
|
||||||
imageThumbnails?: boolean;
|
imageThumbnails?: boolean;
|
||||||
|
oauth2: {
|
||||||
|
origin: string;
|
||||||
|
};
|
||||||
editor?: {
|
editor?: {
|
||||||
requestClose: boolean;
|
requestClose: boolean;
|
||||||
};
|
};
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
"checkDomain": false
|
"checkDomain": false
|
||||||
},
|
},
|
||||||
"oauth2": {
|
"oauth2": {
|
||||||
"publicClient": true
|
"origin": "http://oauth.test.test"
|
||||||
},
|
},
|
||||||
"firebase": {
|
"firebase": {
|
||||||
"fetchTimeoutMillis": 3600000,
|
"fetchTimeoutMillis": 3600000,
|
||||||
|
Loading…
Reference in New Issue
Block a user