[develop]: Update libraries and change userInfoUrl from userManagementService.

This commit is contained in:
Konstantinos Triantafyllou 2024-02-22 10:38:03 +02:00
parent f21330e579
commit 61a98e851f
4 changed files with 5 additions and 4 deletions

View File

@ -14,6 +14,7 @@ import axios, {AxiosHeaders} from "axios";
import {Stakeholder} from "./src/app/openaireLibrary/monitor/entities/stakeholder";
import {CacheIndicators} from "./src/app/openaireLibrary/monitor-admin/utils/cache-indicators/cache-indicators";
import {Session, User} from "./src/app/openaireLibrary/login/utils/helper.class";
import {UserManagementService} from "./src/app/openaireLibrary/services/user-management.service";
var bodyParser = require('body-parser');
var jsonParser = bodyParser.json();
@ -72,7 +73,7 @@ export function app() {
async function checkPermissions(req, res, access: (stakeholder, user) => void) {
let headers: AxiosHeaders = new AxiosHeaders();
headers.set('Cookie', req.headers.cookie);
let userinfoRes = (await axios.get<any>(properties.userInfoUrl, {
let userinfoRes = (await axios.get<any>(UserManagementService.userInfoUrl(), {
withCredentials: true,
headers: headers
}).catch(error => {

@ -1 +1 @@
Subproject commit 14cd46bdb4ee59fc887e017b1c0ee027b6da3e05
Subproject commit a45122565a997bb25cb319a0ba72ea59f549fff6

@ -1 +1 @@
Subproject commit 6cef9ebed0db7ecbcca023bae824239106907960
Subproject commit 651102a5ba049b71bed8eb6a85a8d02cefcb24cc

@ -1 +1 @@
Subproject commit 52eca9abe84c941a7e78a5690f273d8c8e3194f9
Subproject commit 37639eab68c63a506b7df10c42e3379c4a05d94d