-
-
Notifications
You must be signed in to change notification settings - Fork 191
Open
Labels
Description
Observed behaviour
The current implementation uses Authorization: Bearer <api-key> header for authorization. However, the OFREP spec specifies 2 ways of authorization:
- API key auth with header
X-API-Key: <api-key> - OAuth 2.0 bearer token auth with header
Authorization: Bearer <jwt-token>
Expected Behavior
We should parse X-API-Key header rather than Authorization header for api key.
I believe the best way forward is:
- Mark the use of
Authorizationheader as deprecated, and update the openfeature providers to use theX-API-Keyheader instead of theAuthorizationheader (a breaking change for the openfeature providers). - Once we decide to start supporting OAuth 2.0 authorization, we should then make a breaking change to the proxy so that the
Authorizationheader is treated as an OAuth JWT token.
Steps to reproduce
No response