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

Added more fields to the error struct #246

Merged
merged 2 commits into from
Aug 12, 2021
Merged

Conversation

bogdanprodan-okta
Copy link
Contributor

@bogdanprodan-okta bogdanprodan-okta commented Aug 12, 2021

  1. Error from the response body
{
 "error": "consent_required",
 "error_description": "You are not allowed any of the requested scopes."
}
  1. Error from the response header
Www-Authenticate: Bearer authorization_uri="http://example.com/oauth2/v1/authorize", realm="http://example.com", scope="okta.roles.read", error="insufficient_scope", error_description="The access token provided does not contain the required scopes.", resource="/api/v1/groups/groupID/roles"

@bogdanprodan-okta bogdanprodan-okta merged commit 4d16ff4 into master Aug 12, 2021
@bogdanprodan-okta bogdanprodan-okta deleted the error_message branch August 28, 2021 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants