File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ <h3>Please log in</h3>
1111 < button (click) ="login() " class ="btn btn-primary "> login</ button >
1212 </ div >
1313 < div *ngIf ="!isProduction ">
14- < a href ="https://uat-backend.auth.ioet.com/authn/login/timeTracker " > Login </ a >
14+ < button class =" btn btn-primary " > < a href ="{{loginAuth()}} " > </ a > </ button >
1515 </ div >
1616</ div >
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { AzureAdB2CService } from './services/azure.ad.b2c.service';
33import { Router } from '@angular/router' ;
44import { FeatureToggleCookiesService } from '../shared/feature-toggles/feature-toggle-cookies/feature-toggle-cookies.service' ;
55
6- import { environment , CLIENT_URL } from 'src/environments/environment' ;
6+ import { environment , CLIENT_URL , AUTH_URL } from 'src/environments/environment' ;
77import { EnvironmentType } from 'src/environments/enum' ;
88import { LoginService } from './services/login.service' ;
99import { UserService } from '../user/services/user.service' ;
@@ -22,6 +22,7 @@ declare global {
2222export class LoginComponent implements OnInit {
2323 isProduction = environment . production === EnvironmentType . TT_PROD_LEGACY ;
2424 cliendId = CLIENT_URL ;
25+ authUrl = AUTH_URL ;
2526 auth2 : any ;
2627
2728
@@ -115,7 +116,7 @@ export class LoginComponent implements OnInit {
115116 }
116117
117118 loginAuth ( ) : void {
118-
119+ return this . authUrl ;
119120 }
120121
121122}
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export const environment = {
1313export const AUTHORITY = process . env [ 'AUTHORITY' ] ;
1414export const CLIENT_ID = process . env [ 'CLIENT_ID' ] ;
1515export const CLIENT_URL = process . env [ 'CLIENT_URL' ] ;
16+ export let AUTH_URL = process . env [ 'AUTH_URL' ] ;
1617export const SCOPES = process . env [ 'SCOPES' ] . split ( ',' ) ;
1718export const STACK_EXCHANGE_ID = process . env [ 'STACK_EXCHANGE_ID' ] ;
1819export const STACK_EXCHANGE_ACCESS_TOKEN = process . env [ 'STACK_EXCHANGE_ACCESS_TOKEN' ] ;
You can’t perform that action at this time.
0 commit comments