-
Notifications
You must be signed in to change notification settings - Fork 689
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
Docs incorrectly state setting sendAccessToken
enables library handling of 401/403 HTTP status codes
#1178
Comments
I'm happy to submit a PR but wanted to understand what was intended and/or if I'd missed something. |
I think the documentation is incorrect, and should not say:
But instead say
In #429 someone noticed similarly that the docs were not entirely correct, and #414 also has som emore info on how (I personally think that) it's an application concern and needs custom application logic to determine what happens on 401/403 errors. Hope you don't mind if I edit your question title to indicate the docs need improvement? If not let me know and we'll revert and I'll open a separate issue for it. |
sendAccessToken
setting enable handling of 401/403 HTTP status codes?sendAccessToken
enables library handling of 401/403 HTTP status codes
This sounds good, thank you. |
If I'm reading this correctly, the docs are still wrong as the PR hasn't been completed and therefore we have to create our own interceptor to handle 401/403 status codes. If correct, does anyone have a simple example they could share? |
Describe the issue
The documentation indicates that the use of the
sendAccessToken
setting enables an interceptor including: "error handling for security related errors (HTTP status codes 401 and 403) received from the resource server".See:
angular-oauth2-oidc/docs-src/interceptors.md
Line 3 in 8d152c2
I can't see this in behaviour or in the code i.e. the default unless a custom handler is provided is
OAuthNoopResourceServerErrorHandler
; see here.Stackblitz example
N/A
To Reproduce
N/A
Expected behavior
The documentation indicates that setting
sendAccessToken
totrue
enables handling of 401 and 403 HTTP status codes.Desktop (please complete the following information):
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: