Compare commits

...
3 changed files with 7 additions and 8 deletions
+3 -3
View File
@@ -9,11 +9,11 @@ charts:
- name: hostname - name: hostname
value: maestro.stg.dadosfera.ai value: maestro.stg.dadosfera.ai
- name: maestro.pi_factory_url - name: maestro.pi_factory_url
value: pi-factory.stg.dadosfera.ai value: pi-factory.dadosfera.ai
- name: maestro.in_factory_url - name: maestro.in_factory_url
value: in-factory.stg.dadosfera.ai value: in-factory.dadosfera.ai
- name: maestro.tr_factory_url - name: maestro.tr_factory_url
value: in-factory.stg.dadosfera.ai value: in-factory.dadosfera.ai
- name: maestro.open_customer_id - name: maestro.open_customer_id
value: b3e3dfe5-b992-4586-a73c-c0b0c00f615d value: b3e3dfe5-b992-4586-a73c-c0b0c00f615d
- name: maestro.open_group_id - name: maestro.open_group_id
+3 -4
View File
@@ -88,12 +88,11 @@ export class AuthController {
async signIn( async signIn(
@Body() { username, password, totp }: AuthSignInReq, @Body() { username, password, totp }: AuthSignInReq,
@Language() language: LanguageEnum, @Language() language: LanguageEnum,
@Headers('origin') origin: string, @Headers('origin') origin: string
@Headers('host') host: string
): Promise<AuthSignInRes> { ): Promise<AuthSignInRes> {
this.logger.info('/auth - SignIn'); this.logger.info('/auth - SignIn');
this.logger.info('origin: ' + origin); const frontHost = origin.replace(/^https?:\/\//, '');
const metadata = PackTheMetadata({ language, origin, customHost: host }); const metadata = PackTheMetadata({ language, custom_host: frontHost });
this.logger.info('metadata: ' + JSON.stringify(metadata.toJSON())); this.logger.info('metadata: ' + JSON.stringify(metadata.toJSON()));
return this.authClient.signIn({ username, password, totp }, metadata); return this.authClient.signIn({ username, password, totp }, metadata);
} }
+1 -1
View File
@@ -13,7 +13,7 @@ interface IMetadata {
access_token?: string; access_token?: string;
host?: string; host?: string;
origin?: string; origin?: string;
customHost?: string; custom_host?: string;
} }
export function PackTheMetadata(info: IMetadata): Metadata { export function PackTheMetadata(info: IMetadata): Metadata {