Skip to content

Commit

Permalink
fix replace all mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardsn committed May 14, 2024
1 parent 38d018a commit 1f1ab4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions auth/api/iam/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ func (r Wrapper) RequestJWTByGet(ctx context.Context, request RequestJWTByGetReq
if err != nil {
return nil, oauth.OAuth2Error{
Code: oauth.ServerError,
Description: "unable to create RequestObjectByGet",
InternalError: fmt.Errorf("failed to sign authorization RequestObjectByGet :%w", err),
Description: "unable to create RequestObject",
InternalError: fmt.Errorf("failed to sign authorization RequestObject :%w", err),
}
}
return RequestJWTByGet200ApplicationoauthAuthzReqJwtResponse{
Expand Down Expand Up @@ -465,8 +465,8 @@ func (r Wrapper) RequestJWTByPost(ctx context.Context, request RequestJWTByPostR
if err != nil {
return nil, oauth.OAuth2Error{
Code: oauth.ServerError,
Description: "unable to create RequestObjectByGet",
InternalError: fmt.Errorf("failed to sign authorization RequestObjectByGet :%w", err),
Description: "unable to create RequestObject",
InternalError: fmt.Errorf("failed to sign authorization RequestObject :%w", err),
}
}
return RequestJWTByPost200ApplicationoauthAuthzReqJwtResponse{
Expand Down
4 changes: 2 additions & 2 deletions auth/api/iam/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ func TestWrapper_GetRequestJWT(t *testing.T) {
response, err := ctx.client.RequestJWTByGet(cont, RequestJWTByGetRequestObject{Did: webDID.String(), Id: requestID})

assert.Nil(t, response)
assert.EqualError(t, err, "server_error - failed to sign authorization RequestObjectByGet :fail - unable to create RequestObjectByGet")
assert.EqualError(t, err, "server_error - failed to sign authorization RequestObject :fail - unable to create RequestObject")
})
}

Expand Down Expand Up @@ -1085,7 +1085,7 @@ func TestWrapper_PostRequestJWT(t *testing.T) {
response, err := ctx.client.RequestJWTByPost(cont, RequestJWTByPostRequestObject{Did: webDID.String(), Id: requestID})

assert.Nil(t, response)
assert.EqualError(t, err, "server_error - failed to sign authorization RequestObjectByGet :fail - unable to create RequestObjectByGet")
assert.EqualError(t, err, "server_error - failed to sign authorization RequestObject :fail - unable to create RequestObject")
})
}

Expand Down

0 comments on commit 1f1ab4c

Please sign in to comment.