ory / oathkeeper

A cloud native Identity & Access Proxy / API (IAP) and Access Control Decision API that authenticates, authorizes, and mutates incoming HTTP(s) requests. Inspired by the BeyondCorp / Zero Trust white paper. Written in Go.

Home Page:https://www.ory.sh/?utm_source=github&utm_medium=banner&utm_campaign=hydra

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docs wrong for `bearer_token` Subject default location

logan-hcg opened this issue · comments

Preflight checklist

Ory Network Project

No response

Describe the bug

The default is sub:

but documentation shows it it subject:

image
https://www.ory.sh/docs/oathkeeper/pipeline/authn#bearer_token

Reproducing the bug

  1. Configure bearer_token authenticator
  2. Return status 200 and the body {"subject": "test-subject"}

Subject is empty instead of expected test-subject. Changing the response to {"sub": "test-subject"} returns the proper subject value.

Relevant log output

No response

Relevant configuration

No response

Version

v0.40.6

On which operating system are you observing this issue?

None

In which environment are you deploying?

None

Additional Context

No response