You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is called from a BaseOAuth event in beforeApiRequestSend
The applyAccessTokenToRequest should either default to use Bearer Header Tokens, or be configurable like the the Server REST/Oauth2 implementations are configured with Authorization behaviour filters (of course using a method/attribute not filters).
Since most Oauth2/REST servers require Authorization Bearer Headers, how did this implementation ever work, or am I missing something?
The text was updated successfully, but these errors were encountered:
I think the default Oauth2 client should (have at least the option to) set the Authorization header.
According to the The OAuth 2.0 Authorization Framework RFC in the chapter Accessing Protected Resources:
The method in which the client utilizes the access token to authenticate with the resource server depends on the type of access token issued by the authorization server. Typically, it involves using the HTTP "Authorization" request header field ...
Latest Yii2 version, in yii2-authclient/src
/OAuth2.php, Line 171
This is called from a BaseOAuth event in beforeApiRequestSend
The applyAccessTokenToRequest should either default to use Bearer Header Tokens, or be configurable like the the Server REST/Oauth2 implementations are configured with Authorization behaviour filters (of course using a method/attribute not filters).
Since most Oauth2/REST servers require Authorization Bearer Headers, how did this implementation ever work, or am I missing something?
The text was updated successfully, but these errors were encountered: