Hi all - tiny question, maybe :slightly_smiling_fa...
# talk-oathkeeper
m
Hi all - tiny question, maybe 🙂 I’d like to migrate an existing API implementation that uses an opaque API key in a header like so:
Authorization: apikey XXXXXXXXXXXXX
. Can I migrate in Oathkeeper to detect those API keys based on that auth scheme of
apikey
, or will I have to convert my clients’ code to put
bearer
instead?
s
I guess you are talking about the bearer token authenticator? https://www.ory.sh/docs/oathkeeper/pipeline/authn#bearer_token according to docs, the request is forwarded including all headers, so only the downstream session store has to know what token to use
m
You can use a hydrator to validate and populate the request