Commit 17ac4758 authored by jcorvi's avatar jcorvi
Browse files

Merge branch 'int_tox_hub' into 'develop'

Int tox hub

See merge request !18
parents 7c9aaf1b ce1c2563
Pipeline #26931 passed with stage
in 1 minute and 3 seconds
......@@ -2,14 +2,12 @@ import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { DocumentsComponent } from './documents/documents.component';
import { DocumentDetailComponent } from './document-detail/document-detail.component';
import { SrdomainLevelComponent } from './srdomain-level/srdomain-level.component';
import { SrdomaintemplateTabulatorComponent } from './srdomaintemplate-tabulator/srdomaintemplate-tabulator.component';
import { PretoxsentencesTabulatorComponent } from './pretoxsentences-tabulator/pretoxsentences-tabulator.component';
import { FindingTabulatorComponent } from './finding-tabulator/finding-tabulator.component';
import {LoginComponent} from './login/login.component';
import {LogoutComponent} from './logout/logout.component';
import {AuthGuard} from './authguard.service';
import { HistoryTrackingComponent } from './history-tracking/history-tracking.component';
const routes: Routes = [
{ path: 'login', component: LoginComponent },
......@@ -28,7 +26,7 @@ const routes: Routes = [
]
},
{ path: 'documents', component: DocumentsComponent, canActivate: [AuthGuard]},
{ path: 'documents', component: DocumentsComponent},
{ path: 'first_1', component: SrdomainLevelComponent},
{ path: 'second_2', component: SrdomainLevelComponent},
......
<router-outlet *ngIf="getIsLogged()"></router-outlet>
<!-- <span *ngIf="getIsLogged()" class="navbar-brand"> Welcome {{userName}} </span>
<a *ngIf="getIsLogged()" (click)="logout()">Logout</a> -->
<!-- <router-outlet ></router-outlet> -->
<!--The content below is only a placeholder and can be replaced.-->
<!-- <div style="text-align:center">
<h1>
......@@ -32,7 +43,7 @@
[active]="rla.isActive" > {{link.label}}
</a>
</nav> -->
<router-outlet></router-outlet>
<!-- <router-outlet></router-outlet> -->
<!-- <app-messages></app-messages> -->
<!-- <app-footer></app-footer> -->
<!--<router-outlet></router-outlet>-->
import { Component } from '@angular/core';
import { Router } from '@angular/router';
import { LoginService } from './login.service';
import { Subscription } from 'rxjs';
import { DocumentService } from './document.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
......@@ -9,7 +13,15 @@ export class AppComponent {
title = 'angular-material-tab-router';
navLinks: any[];
activeLinkIndex = -1;
constructor(private router: Router) {
userName = '';
text = '';
helloSubs : Subscription;
constructor(private authService: LoginService, private router: Router, private documentService: DocumentService) {
this.configure();
/*this.helloSubs=this.documentService.hello().subscribe(response => {
this.text = response
})*/
this.navLinks = [
{
label: 'First',
......@@ -25,10 +37,43 @@ export class AppComponent {
index: 2
},
];
// alert('app');
// alert(this.authService.getIsLogged());
// if(!this.authService.getIsLogged()){
// this.login();
// }
//else{
// alert(this.authService.getUsername());
// }
}
ngOnInit(): void {
this.router.events.subscribe((res) => {
this.activeLinkIndex = this.navLinks.indexOf(this.navLinks.find(tab => tab.link === '.' + this.router.url));
});
}
login() {
this.authService.login();
}
private configure() {
this.authService.configure();
}
logout() {
this.authService.logout();
}
getIsLogged(){
if (this.authService.getIsLogged()){
this.userName=this.authService.getUsername();
}
return this.authService.getIsLogged();
}
}
......@@ -17,7 +17,6 @@ import { HttpModule } from '@angular/http';
import {CookieService} from 'ngx-cookie-service';
import { PretoxsentencesTabulatorComponent } from './pretoxsentences-tabulator/pretoxsentences-tabulator.component';
import { SrdomaintemplateTabulatorComponent } from './srdomaintemplate-tabulator/srdomaintemplate-tabulator.component';
import { HttpInterceptorService } from './httpInterceptor.service';
import {MatToolbarModule} from '@angular/material/toolbar';
import {MatTabsModule} from '@angular/material/tabs';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
......@@ -25,8 +24,8 @@ import { SrdomainLevelComponent } from './srdomain-level/srdomain-level.componen
import { LogoutComponent } from './logout/logout.component';
import { HistoryTrackingComponent } from './history-tracking/history-tracking.component';
import {MatProgressSpinnerModule, MatProgressBarModule} from '@angular/material'
import {OAuthModule} from "angular-oauth2-oidc";
import { environment } from '../environments/environment';
@NgModule({
declarations: [
......@@ -55,15 +54,21 @@ import {MatProgressSpinnerModule, MatProgressBarModule} from '@angular/material'
MatTabsModule,
BrowserAnimationsModule,
MatToolbarModule,
MatProgressSpinnerModule,
MatProgressBarModule
MatProgressBarModule,
OAuthModule.forRoot({
resourceServer: {
//allowedUrls: [environment.apiUrl],
//allowedUrls: [environment.oauth2_resource_server_allowed_url],
//allowedUrls: [environment.oauth2_resource_server_allowed_url],
//allowedUrls: ["http://localhost:8090/","https://etransafe.bsc.es/"],
allowedUrls: ["https://etransafe.bsc.es/","https://dev.toxhub.etransafe.eu","https://test.toxhub.etransafe.eu","https://toxhub.etransafe.eu"],
//allowedUrls: [window.location.protocol + '//' + window.location.hostname + '/'],
sendAccessToken: true
}
}),
],
providers: [LoginService, CookieService, {
provide: HTTP_INTERCEPTORS,
useClass: HttpInterceptorService,
multi: true
}],
providers: [LoginService, CookieService],
bootstrap: [AppComponent],
exports: [HeaderComponent, FooterComponent, DocumentsComponent, DocumentDetailComponent, MessagesComponent]
})
......
import {AuthConfig} from 'angular-oauth2-oidc';
import { environment } from '../environments/environment';
export const authConfig: AuthConfig = {
issuer: environment.oauth2_issuer,
redirectUri: window.location.origin + environment.projectContextPath,
clientId: environment.oauth2_clientId,
responseType: 'code',
strictDiscoveryDocumentValidation: false,
scope: 'openid profile email offline_access',
showDebugInformation: environment.oauth2_showDebugInformation
}
import { Injectable } from '@angular/core';
import { Router, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { LoginService } from './login.service';
@Injectable({
providedIn: 'root'
})
export class AuthGuard implements CanActivate {
constructor(private authService: LoginService, private router: Router) {}
canActivate(next: ActivatedRouteSnapshot, state: RouterStateSnapshot) {
let loged_in = this.authService.isUserLoggedIn();
//alert(loged_in);
if (!loged_in) {
//alert(1);
this.router.navigateByUrl('/login');
return false;
} else {
//alert(2);
return true;
}
}
}
\ No newline at end of file
......@@ -24,7 +24,7 @@ export class DocumentService {
getDocuments(): Observable<Document[]> {
//const headers = new HttpHeaders ({ Authorization: 'Basic '+ btoa('javi'+':'+'pass2')});
return this.http.get<Document[]>(this.documentsUrl).pipe(
tap(_ => this.log('fetched documents')),
catchError(this.handleError<Document[]>('getDocuments', []))
......@@ -229,5 +229,9 @@ export class DocumentService {
return of(result as T);
};
}
hello(): Observable<string> {
const headers = new HttpHeaders().set('Content-Type', 'text/plain; charset=utf-8');
return this.http.get("http://localhost:8090/pretoxapi/hello",
{headers, responseType: 'text'});
}
}
......@@ -5,7 +5,7 @@
</h1>
</div>
<div class="w3-container">
<div id="my-tabular-table-documents"></div>
<div id="my-tabular-table-documents"></div>
</div>
import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpHeaders } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { LoginService } from './login.service';
@Injectable()
export class HttpInterceptorService implements HttpInterceptor {
constructor(private authenticationService: LoginService) { }
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
if (this.authenticationService.isUserLoggedIn() && req.url.indexOf('basicauth') === -1) {
const authReq = req.clone({
headers: new HttpHeaders({
'Content-Type': 'application/json',
'Authorization': sessionStorage.getItem('tokenUser')
//'Authorization': `Basic ${window.btoa(this.authenticationService.username + ":" + this.authenticationService.password)}`
})
});
return next.handle(authReq);
} else {
return next.handle(req);
}
}
}
\ No newline at end of file
import { TestBed } from '@angular/core/testing';
import { InMemoryDataService } from './in-memory-data.service';
describe('InMemoryDataService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: InMemoryDataService = TestBed.get(InMemoryDataService);
expect(service).toBeTruthy();
});
});
import { InMemoryDbService } from 'angular-in-memory-web-api';
import { Document } from './document';
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root',
})
export class InMemoryDataService implements InMemoryDbService {
createDb() {
const documents = [
{ documentId: 1, name: 'Toxicity report 1', text:'The relative and absolute testes weights were lower than in control animals, but a dose- relationship could not be detected. The testes showed an arrested spermatogenesis with loss of round spermatids or tubular atrophy. The seminal vesicles showed reduced secretion. - Signs of increased atresia of tertiary follicles in the ovary and hyperplasia of secretory cells in the oviducts were observed. These changes were not closely dose-related, however, this may be due to the onset of treatment in different cycle stages. The relative uterus weight was higher than those in control animals; however, a dose-relationship could not be detected. - Lobular hyperplasia of the mammary gland was found in male and female animals, whereby the severity of hyperplasia (up to moderate) and the number of affected animals increased with ascending doses.' },
{ documentId: 2, name: 'Toxicity report 2' , text:'The relative and absolute testes weights were lower than in control animals, but a dose- relationship could not be detected. The testes showed an arrested spermatogenesis with loss of round spermatids or tubular atrophy. The seminal vesicles showed reduced secretion. - Signs of increased atresia of tertiary follicles in the ovary and hyperplasia of secretory cells in the oviducts were observed. These changes were not closely dose-related, however, this may be due to the onset of treatment in different cycle stages. The relative uterus weight was higher than those in control animals; however, a dose-relationship could not be detected. - Lobular hyperplasia of the mammary gland was found in male and female animals, whereby the severity of hyperplasia (up to moderate) and the number of affected animals increased with ascending doses.' },
{ documentId: 3, name: 'Toxicity report 3' , text:'The relative and absolute testes weights were lower than in control animals, but a dose- relationship could not be detected. The testes showed an arrested spermatogenesis with loss of round spermatids or tubular atrophy. The seminal vesicles showed reduced secretion. - Signs of increased atresia of tertiary follicles in the ovary and hyperplasia of secretory cells in the oviducts were observed. These changes were not closely dose-related, however, this may be due to the onset of treatment in different cycle stages. The relative uterus weight was higher than those in control animals; however, a dose-relationship could not be detected. - Lobular hyperplasia of the mammary gland was found in male and female animals, whereby the severity of hyperplasia (up to moderate) and the number of affected animals increased with ascending doses.' },
{ documentId: 4, name: 'Toxicity report 4' , text:'The relative and absolute testes weights were lower than in control animals, but a dose- relationship could not be detected. The testes showed an arrested spermatogenesis with loss of round spermatids or tubular atrophy. The seminal vesicles showed reduced secretion. - Signs of increased atresia of tertiary follicles in the ovary and hyperplasia of secretory cells in the oviducts were observed. These changes were not closely dose-related, however, this may be due to the onset of treatment in different cycle stages. The relative uterus weight was higher than those in control animals; however, a dose-relationship could not be detected. - Lobular hyperplasia of the mammary gland was found in male and female animals, whereby the severity of hyperplasia (up to moderate) and the number of affected animals increased with ascending doses.' },
{ documentId: 5, name: 'Toxicity report 5' , text:'The relative and absolute testes weights were lower than in control animals, but a dose- relationship could not be detected. The testes showed an arrested spermatogenesis with loss of round spermatids or tubular atrophy. The seminal vesicles showed reduced secretion. - Signs of increased atresia of tertiary follicles in the ovary and hyperplasia of secretory cells in the oviducts were observed. These changes were not closely dose-related, however, this may be due to the onset of treatment in different cycle stages. The relative uterus weight was higher than those in control animals; however, a dose-relationship could not be detected. - Lobular hyperplasia of the mammary gland was found in male and female animals, whereby the severity of hyperplasia (up to moderate) and the number of affected animals increased with ascending doses.' },
{ documentId: 6, name: 'Toxicity report 6' , text:'The relative and absolute testes weights were lower than in control animals, but a dose- relationship could not be detected. The testes showed an arrested spermatogenesis with loss of round spermatids or tubular atrophy. The seminal vesicles showed reduced secretion. - Signs of increased atresia of tertiary follicles in the ovary and hyperplasia of secretory cells in the oviducts were observed. These changes were not closely dose-related, however, this may be due to the onset of treatment in different cycle stages. The relative uterus weight was higher than those in control animals; however, a dose-relationship could not be detected. - Lobular hyperplasia of the mammary gland was found in male and female animals, whereby the severity of hyperplasia (up to moderate) and the number of affected animals increased with ascending doses.' },
{ documentId: 7, name: 'Toxicity report 7' , text:'The relative and absolute testes weights were lower than in control animals, but a dose- relationship could not be detected. The testes showed an arrested spermatogenesis with loss of round spermatids or tubular atrophy. The seminal vesicles showed reduced secretion. - Signs of increased atresia of tertiary follicles in the ovary and hyperplasia of secretory cells in the oviducts were observed. These changes were not closely dose-related, however, this may be due to the onset of treatment in different cycle stages. The relative uterus weight was higher than those in control animals; however, a dose-relationship could not be detected. - Lobular hyperplasia of the mammary gland was found in male and female animals, whereby the severity of hyperplasia (up to moderate) and the number of affected animals increased with ascending doses.' },
{ documentId: 8, name: 'Toxicity report 8' , text:'The relative and absolute testes weights were lower than in control animals, but a dose- relationship could not be detected. The testes showed an arrested spermatogenesis with loss of round spermatids or tubular atrophy. The seminal vesicles showed reduced secretion. - Signs of increased atresia of tertiary follicles in the ovary and hyperplasia of secretory cells in the oviducts were observed. These changes were not closely dose-related, however, this may be due to the onset of treatment in different cycle stages. The relative uterus weight was higher than those in control animals; however, a dose-relationship could not be detected. - Lobular hyperplasia of the mammary gland was found in male and female animals, whereby the severity of hyperplasia (up to moderate) and the number of affected animals increased with ascending doses.' },
{ documentId: 9, name: 'Toxicity report 9' , text:'The relative and absolute testes weights were lower than in control animals, but a dose- relationship could not be detected. The testes showed an arrested spermatogenesis with loss of round spermatids or tubular atrophy. The seminal vesicles showed reduced secretion. - Signs of increased atresia of tertiary follicles in the ovary and hyperplasia of secretory cells in the oviducts were observed. These changes were not closely dose-related, however, this may be due to the onset of treatment in different cycle stages. The relative uterus weight was higher than those in control animals; however, a dose-relationship could not be detected. - Lobular hyperplasia of the mammary gland was found in male and female animals, whereby the severity of hyperplasia (up to moderate) and the number of affected animals increased with ascending doses.' },
{ documentId: 10, name: 'Toxicity report 10' , text:'The relative and absolute testes weights were lower than in control animals, but a dose- relationship could not be detected. The testes showed an arrested spermatogenesis with loss of round spermatids or tubular atrophy. The seminal vesicles showed reduced secretion. - Signs of increased atresia of tertiary follicles in the ovary and hyperplasia of secretory cells in the oviducts were observed. These changes were not closely dose-related, however, this may be due to the onset of treatment in different cycle stages. The relative uterus weight was higher than those in control animals; however, a dose-relationship could not be detected. - Lobular hyperplasia of the mammary gland was found in male and female animals, whereby the severity of hyperplasia (up to moderate) and the number of affected animals increased with ascending doses.' }
];
return {documents};
}
// Overrides the genId method to ensure that a hero always has an id.
// If the heroes array is empty,
// the method below returns the initial number (11).
// if the heroes array is not empty, the method below returns the highest
// hero id + 1.
genId(documents: Document[]): number {
return documents.length > 0 ? Math.max(...documents.map(document => document.documentId)) + 1 : 11;
}
}
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { map } from 'rxjs/operators';
import { environment } from './../environments/environment';
import { map, filter } from 'rxjs/operators';
import {OAuthService} from "angular-oauth2-oidc";
import {environment } from './../environments/environment';
import {authConfig} from "./auth.config";
@Injectable({
providedIn: 'root'
})
......@@ -13,20 +15,15 @@ export class LoginService {
public username: String;
public password: String;
public isLogged: boolean;
constructor(private http: HttpClient) {
constructor(private http: HttpClient,private oauthService: OAuthService) {
}
authenticationService(username: String, password: String) {
const url = `${this.apiUrl}/basicauth`;
return this.http.get(url,
{ headers: { authorization: this.createBasicAuthToken(username, password) } }).pipe(map((res) => {
this.username = username;
this.password = password;
this.registerSuccessfulLogin(username, password);
}));
}
createBasicAuthToken(username: String, password: String) {
return 'Basic ' + window.btoa(username + ":" + password)
......@@ -37,11 +34,7 @@ export class LoginService {
sessionStorage.setItem(this.USER_BASIC_TOKEN_ATTRIBUTE_NAME, this.createBasicAuthToken(username, password));
}
logout() {
sessionStorage.removeItem(this.USER_NAME_SESSION_ATTRIBUTE_NAME);
this.username = null;
this.password = null;
}
isUserLoggedIn() {
let user = sessionStorage.getItem(this.USER_NAME_SESSION_ATTRIBUTE_NAME);
......@@ -54,4 +47,49 @@ export class LoginService {
if (user === null) return '';
return user;
}
// configure(): void {
// this.oauthService.configure(authConfig);
// this.oauthService.tokenValidationHandler = new NullValidationHandler();
// this.oauthService.setupAutomaticSilentRefresh();
// this.oauthService.loadDiscoveryDocumentAndTryLogin();
// }
public configure() {
this.oauthService.configure(authConfig);
this.oauthService.loadDiscoveryDocumentAndLogin();
this.oauthService.events
.pipe(filter((e) => e.type === 'token_received'))
.subscribe((_) => this.oauthService.loadUserProfile());
}
login() {
this.oauthService.initLoginFlow();
}
public getIsLogged(): boolean {
return (this.oauthService.hasValidIdToken() && this.oauthService.hasValidAccessToken());
}
public logout() { this.oauthService.logOut(); }
public refresh() { this.oauthService.silentRefresh(); }
public hasValidToken() { return this.oauthService.hasValidAccessToken(); }
// These normally won't be exposed from a service like this, but
// for debugging it makes sense.
public get accessToken() { return this.oauthService.getAccessToken(); }
public get refreshToken() { return this.oauthService.getRefreshToken(); }
public get identityClaims() { return this.oauthService.getIdentityClaims(); }
public get idToken() { return this.oauthService.getIdToken(); }
public get logoutUrl() { return this.oauthService.logoutUrl; }
public getUsername(): string {
return this.oauthService.getIdentityClaims()[`name`];
}
}
\ No newline at end of file
......@@ -23,17 +23,18 @@ export class LoginComponent implements OnInit {
private authenticationService: LoginService) { }
ngOnInit() {
this.authenticationService.login();
}
handleLogin() {
this.authenticationService.authenticationService(this.username, this.password).subscribe((result)=> {
this.invalidLogin = false;
this.loginSuccess = true;
this.successMessage = 'Login Successful.';
this.router.navigate(['/documents']);
}, () => {
this.invalidLogin = true;
this.loginSuccess = false;
});
// this.authenticationService.authenticationService(this.username, this.password).subscribe((result)=> {
// this.invalidLogin = false;
// this.loginSuccess = true;
// this.successMessage = 'Login Successful.';
// this.router.navigate(['/documents']);
// }, () => {
// this.invalidLogin = true;
// this.loginSuccess = false;
// });
}
}
\ No newline at end of file
......@@ -22,9 +22,9 @@
</div>
<div class="navbar-collapse collapse w-100 order-3 dual-collapse2">
<ul class="navbar-nav ml-auto">
<li><span *ngIf="loginService.isUserLoggedIn()" class="navbar-brand">Welcome {{loginService.getLoggedInUserName()}}</span></li>
<li><a *ngIf="loginService.isUserLoggedIn()" routerLink="/logout" class="navbar-brand">LogOut</a></li>
<li><a *ngIf="!loginService.getIsLogged()" routerLink="/login" class="navbar-brand">LogIn</a></li>
<li><span *ngIf="loginService.getIsLogged()" class="navbar-brand">Welcome {{loginService.getUsername()}}</span></li>
<li><a *ngIf="loginService.getIsLogged()" routerLink="/logout" class="navbar-brand">LogOut</a></li>
</ul>
</div>
</nav>
......
......@@ -7,14 +7,18 @@ import { LoginService } from '../login.service';
})
export class MenuComponent implements OnInit {
constructor(public loginService: LoginService) { }
constructor(public loginService: LoginService) {
this.loginService.configure();
public isUserLoggedIn: boolean = false;
}
//public isUserLoggedIn: boolean = false;
ngOnInit(): void {
// Setup a subscription so our variable will know the latest status of login
this.isUserLoggedIn = this.loginService.isUserLoggedIn();
//this.isUserLoggedIn = this.loginService.isUserLoggedIn();
}
......@@ -22,7 +26,9 @@ export class MenuComponent implements OnInit {
this.loginService.logout();
}
login() {
this.loginService.login();
}
}
(function(window) {
window["env"] = window["env"] || {};
// Environment variables
window["env"]["projectContextPath"] = "";
window["env"]["apiUrl"] = "http://localhost:8090/pretoxapi/";
window["env"]["bratUrl"] = "http://localhost:8001";
window["env"]["debug"] = true;
//oauth2 security
window["env"]["oauth2_issuer"] = "http://localhost:8050/auth/realms/oauth2-pretox-local";
window["env"]["oauth2_clientId"] = "pretoxtm-app";
window["env"]["oauth2_showDebugInformation"] = true;
window["env"]["oauth2_resource_server_allowed_url"] = "http://localhost:8090/";
})(this);
\ No newline at end of file
(function(window) {
window.env = window.env || {};
// Environment variables
window["env"]["projectContextPath"] = "${PROJECT_CONTEXT_PATH}";
window["env"]["apiUrl"] = "${API_URL}";
window["env"]["bratUrl"] = "${BRAT_URL}";
window["env"]["debug"] = "${DEBUG}";
})(this);
\ No newline at end of file
//oauth2 security variables
window["env"]["oauth2_issuer"] = "${OAUTH2_ISSUER}";
window["env"]["oauth2_clientId"] = "${OAUTH2_CLIENTID}";
window["env"]["oauth2_showDebugInformation"] = "${OAUTH2_DEBUG}";
window["env"]["oauth2_resource_server_allowed_url"] = "${OAUTH2_RESOURCE_SERVER_ALLOWED_URL}";
})(this);
export const environment = {
production: true,
//apiUrl: 'https://dev.etransafe.bsc.es/documents/',
//bratUrl: 'https://dev.etransafe.bsc.es/brat/'
projectContextPath: window["env"]["projectContextPath"] || "",
apiUrl: window["env"]["apiUrl"] || "default",
bratUrl: window["env"]["bratUrl"] || "default",
debug: window["env"]["debug"] || false
debug: window["env"]["debug"] || false,
//security oauth2
oauth2_issuer: window["env"]["oauth2_issuer"] || "default",
oauth2_clientId: window["env"]["oauth2_clientId"] || "default",
oauth2_showDebugInformation: window["env"]["oauth2_showDebugInformation"] || false,
oauth2_resource_server_allowed_url: window["env"]["oauth2_resource_server_allowed_url"] || "default"
};
......@@ -4,16 +4,15 @@
export const environment = {
production: false,
projectContextPath:'',
apiUrl: 'http://localhost:8090/pretoxapi',
//apiUrl: 'https://etransafe.bsc.es/pretoxapi',
bratUrl: 'http://localhost:8001',
//apiUrl: window["env"]["apiUrl"] || "default",
//bratUrl: window["env"]["bratUrl"] || "default",
//apiUrl_2: window["env"]["apiUrl"] || "default",
//bratUrl_2: window["env"]["bratUrl"] || "default",
//TODO seguir desde aquí
// apiUrl_2: window["env"]["apiUrl"] || "default",
// bratUrl_2: window["env"]["bratUrl"] || "default",
// debug: window["env"]["debug"] || false
//
oauth2_issuer: 'http://localhost:8050/auth/realms/oauth2-pretox-local',
oauth2_clientId: 'pretoxtm-app',
oauth2_showDebugInformation: true,
oauth2_resource_server_allowed_url: 'http://localhost:8090/'
};
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment