-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 'Authorization' header with bearer token #1534
Conversation
@token = DeviseTokenAuth::TokenFactory.new unless @token | ||
@token.token ||= request.headers[access_token_name] || params[access_token_name] || parsed_auth_cookie[access_token_name] | ||
@token.client ||= request.headers[client_name] || params[client_name] || parsed_auth_cookie[client_name] | ||
@token.token ||= request.headers[access_token_name] || params[access_token_name] || parsed_auth_cookie[access_token_name] || decoded_authorization_token[access_token_name] |
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.
This seems a not breaking way to include authorization header with bearer, great 👏
@rhiroshi Could we turn this off when |
commented with a different account. I will create a PR this week to address this |
@rhiroshi any update on making it possible to disable this header when DeviseTokenAuth.cookie_enabled is true? Thanks! |
Added Authorization header with bearer token defined in RFC 6750
related issues: #1522 #902 #1487