fix login callback url
This commit is contained in:
parent
187268bd67
commit
074e33329d
@ -1,6 +1,6 @@
|
||||
import { File } from "le-coffre-resources/dist/SuperAdmin";
|
||||
import Container, { Service } from "typedi";
|
||||
|
||||
import "reflect-metadata";
|
||||
import BaseSuperAdmin from "../BaseSuperAdmin";
|
||||
import CryptoService from "@Front/Services/CryptoService/CryptoService";
|
||||
|
||||
|
@ -30,7 +30,7 @@ export default class LoginClass extends BasePage {
|
||||
private redirectUserOnConnection() {
|
||||
const variables = FrontendVariables.getInstance();
|
||||
const baseFronturl =
|
||||
variables.BACK_API_PROTOCOL + variables.FRONT_APP_HOST + (variables.FRONT_APP_PORT ? ":" + variables.FRONT_APP_PORT : "");
|
||||
variables.BACK_API_PROTOCOL + variables.FRONT_APP_HOST;
|
||||
const authorizeEndPoint = variables.IDNOT_AUTHORIZE_ENDPOINT;
|
||||
const clientId = variables.IDNOT_CLIENT_ID;
|
||||
const url = `${authorizeEndPoint}?client_id=${clientId}&redirect_uri=${baseFronturl}/authorized-client&scope=openid,profile,offline_access&response_type=code`;
|
||||
|
@ -11,8 +11,6 @@ export class FrontendVariables {
|
||||
|
||||
public FRONT_APP_HOST!: string;
|
||||
|
||||
public FRONT_APP_PORT!: string;
|
||||
|
||||
public IDNOT_AUTHORIZE_ENDPOINT!: string;
|
||||
|
||||
public IDNOT_CLIENT_ID!: string;
|
||||
|
@ -17,7 +17,6 @@ type AppPropsWithLayout = AppProps & {
|
||||
backApiRootUrl: string;
|
||||
backApiVersion: string;
|
||||
frontAppHost: string;
|
||||
frontAppPort: string;
|
||||
idNotAuthorizeEndpoint: string;
|
||||
idNotClientId: string;
|
||||
};
|
||||
@ -30,7 +29,6 @@ const MyApp = (({
|
||||
backApiRootUrl,
|
||||
backApiVersion,
|
||||
frontAppHost,
|
||||
frontAppPort,
|
||||
idNotAuthorizeEndpoint,
|
||||
idNotClientId,
|
||||
}: AppPropsWithLayout) => {
|
||||
@ -41,7 +39,6 @@ const MyApp = (({
|
||||
FrontendVariables.getInstance().BACK_API_ROOT_URL = backApiRootUrl;
|
||||
FrontendVariables.getInstance().BACK_API_VERSION = backApiVersion;
|
||||
FrontendVariables.getInstance().FRONT_APP_HOST = frontAppHost;
|
||||
FrontendVariables.getInstance().FRONT_APP_PORT = frontAppPort;
|
||||
FrontendVariables.getInstance().IDNOT_AUTHORIZE_ENDPOINT = idNotAuthorizeEndpoint;
|
||||
FrontendVariables.getInstance().IDNOT_CLIENT_ID = idNotClientId;
|
||||
|
||||
@ -55,7 +52,6 @@ MyApp.getInitialProps = async () => {
|
||||
backApiRootUrl: process.env["BACK_API_ROOT_URL"],
|
||||
backApiVersion: process.env["BACK_API_VERSION"],
|
||||
frontAppHost: process.env["FRONT_APP_HOST"],
|
||||
frontAppPort: process.env["FRONT_APP_PORT"],
|
||||
idNotAuthorizeEndpoint: process.env["IDNOT_AUTHORIZE_ENDPOINT"],
|
||||
idNotClientId: process.env["IDNOT_CLIENT_ID"],
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user