Skip to content

Commit

Permalink
Add logs in new access service mock
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuradobery committed Sep 25, 2024
1 parent 05b3547 commit 5c683cb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func (t *accessServiceMock) Authorize(
request *iamv1.AuthorizeRequest,
) (*iamv1.AuthorizeResponse, error) {

log.Printf("Received authorize request %v\n", request)
results := make(map[int64]*iamv1.AuthorizeResult)
for key, value := range request.GetChecks() {
token := value.GetIamToken()
Expand Down Expand Up @@ -136,6 +137,7 @@ func (t *accessServiceMock) Authenticate(
request *iamv1.AuthenticateRequest,
) (*iamv1.AuthenticateResponse, error) {

log.Printf("Received authenticate request %v\n", request)
token := request.GetIamToken()
if token == "" {
return &iamv1.AuthenticateResponse{
Expand Down

0 comments on commit 5c683cb

Please sign in to comment.