Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token scope and spec scope mismatch error is not clear in logs #2

Closed
stevehu opened this issue Mar 17, 2017 · 1 comment
Closed

Token scope and spec scope mismatch error is not clear in logs #2

stevehu opened this issue Mar 17, 2017 · 1 comment
Assignees

Comments

@stevehu
Copy link
Contributor

stevehu commented Mar 17, 2017

With service to service call, if token is not matched, the error message is not clear when service has the wrong token and what is the token scope and spec scope.

Need to verify that when logs are aggregated in ELK, the service Id which is container name should be indexable.

error response.

{"statusCode":403,"code":"ERR10005","message":"AUTH_TOKEN_SCOPE_MISMATCH","description":"Scopes in authorization token and spec scopes are not matched"}
@stevehu
Copy link
Contributor Author

stevehu commented Mar 17, 2017

Here is the new response captured in test case.

{
  "statusCode": 403,
  "code": "ERR10005",
  "message": "AUTH_TOKEN_SCOPE_MISMATCH",
  "description": "Scopes [ATMP1000.w, ATMP1000.r] in authorization token and specification scopes [write:pets, read:pets] are not matched"
}

@stevehu stevehu closed this as completed Mar 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant