Add oauth origin for client config

This commit is contained in:
Timofey Boyko 2024-06-28 18:44:39 +03:00
parent 2ffa095303
commit 5f712f87f3
4 changed files with 7 additions and 4 deletions

View File

@ -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}${

View File

@ -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"
} }
} }

View File

@ -112,6 +112,9 @@ declare global {
url?: string; url?: string;
}; };
imageThumbnails?: boolean; imageThumbnails?: boolean;
oauth2: {
origin: string;
};
editor?: { editor?: {
requestClose: boolean; requestClose: boolean;
}; };

View File

@ -19,7 +19,7 @@
"checkDomain": false "checkDomain": false
}, },
"oauth2": { "oauth2": {
"publicClient": true "origin": "http://oauth.test.test"
}, },
"firebase": { "firebase": {
"fetchTimeoutMillis": 3600000, "fetchTimeoutMillis": 3600000,