mirror of
https://gitlab.com/mobicoop/v3/service/auth.git
synced 2026-01-03 21:02:40 +00:00
add logging for deploy debugging
This commit is contained in:
@@ -41,6 +41,6 @@ build:
|
|||||||
script:
|
script:
|
||||||
- docker build --pull -t "$CI_REGISTRY_IMAGE" .
|
- docker build --pull -t "$CI_REGISTRY_IMAGE" .
|
||||||
- docker push "$CI_REGISTRY_IMAGE"
|
- docker push "$CI_REGISTRY_IMAGE"
|
||||||
only:
|
# only:
|
||||||
- main
|
# - main
|
||||||
when: manual
|
when: manual
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ export class OpaDecisionMaker extends IMakeDecision {
|
|||||||
(obj, item) => Object.assign(obj, { [item.name]: item.value }),
|
(obj, item) => Object.assign(obj, { [item.name]: item.value }),
|
||||||
{},
|
{},
|
||||||
);
|
);
|
||||||
|
console.log(reducedContext);
|
||||||
try {
|
try {
|
||||||
const { data } = await lastValueFrom(
|
const { data } = await lastValueFrom(
|
||||||
this._httpService.post<Decision>(
|
this._httpService.post<Decision>(
|
||||||
@@ -40,8 +41,10 @@ export class OpaDecisionMaker extends IMakeDecision {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
console.log('data:', data);
|
||||||
return new Authorization(data.result.allow);
|
return new Authorization(data.result.allow);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
console.log('error', e);
|
||||||
return new Authorization(false);
|
return new Authorization(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user