-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Expose authorization header parser #152559
Expose authorization header parser #152559
Conversation
Pinging @elastic/kibana-security (Team:Security) |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Unknown metric groupsAPI count
ESLint disabled line counts
Total ESLint disabled count
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Resolves elastic#152116 ## Summary Exposes HTTPAuthorizationHeader interface to allow extracting credentials from request headers. ## Example ```ts import { HTTPAuthorizationHeader } from '@kbn/security-plugin/server'; HTTPAuthorizationHeader.parseFromRequest(request); ``` Returns the following object: ``` HTTPAuthorizationHeader { scheme: 'ApiKey', credentials: 'ZmhPUm5JWUItbEhKWktnU2VjWlY6TF9CSDB1c3JSd1NsZkNzZ3kzMnNpdw==' } ```
Resolves elastic#152116 ## Summary Exposes HTTPAuthorizationHeader interface to allow extracting credentials from request headers. ## Example ```ts import { HTTPAuthorizationHeader } from '@kbn/security-plugin/server'; HTTPAuthorizationHeader.parseFromRequest(request); ``` Returns the following object: ``` HTTPAuthorizationHeader { scheme: 'ApiKey', credentials: 'ZmhPUm5JWUItbEhKWktnU2VjWlY6TF9CSDB1c3JSd1NsZkNzZ3kzMnNpdw==' } ```
Resolves #152116 ## Summary Exposes HTTPAuthorizationHeader interface to allow extracting credentials from request headers. ## Example ```ts import { HTTPAuthorizationHeader } from '@kbn/security-plugin/server'; HTTPAuthorizationHeader.parseFromRequest(request); ``` Returns the following object: ``` HTTPAuthorizationHeader { scheme: 'ApiKey', credentials: 'ZmhPUm5JWUItbEhKWktnU2VjWlY6TF9CSDB1c3JSd1NsZkNzZ3kzMnNpdw==' } ```
Resolves #152116
Summary
Exposes HTTPAuthorizationHeader interface to allow extracting credentials from request headers.
Example
Returns the following object: