steep-musician-43528
11/22/2022, 2:43 PMSubject
field logged for oauth2_client_credentials
authenticator, however I'm not seeing it ๐ ๐งตsteep-musician-43528
11/22/2022, 2:45 PM{
"audience": "application",
"granted": true,
"http_host": "<http://some.domain.com|some.domain.com>",
"http_method": "POST",
"http_url": "<https://some.domain.com/api/some-api>",
"http_user_agent": "",
"level": "info",
"msg": "Access request granted",
"service_name": "ORY Oathkeeper",
"service_version": "v0.39.0",
"time": "2022-11-22T14:35:50Z"
}
I was hoping that this PR introduced subject logging, but i might be misunderstanding it?faint-insurance-61054
11/22/2022, 3:43 PMfaint-insurance-61054
11/22/2022, 3:43 PMif sess, ok := r.Context().Value(proxy.ContextKeySession).(*authn.AuthenticationSession); ok {
fields["subject"] = sess.Subject
}
steep-musician-43528
11/22/2022, 4:06 PMAuthentication: Basic <credentials>
header to the request and it was authenticated (i got a 200 from API and granted=true log from oathkeeper). IIUC oathkeeper should log Subject, unless some other form of authenticated sessions
is meant in this bit of code?
i guess my question is - does it work for everyone else and i'm misunderstanding the feature/config, or is it a time to open an issue?freezing-needle-9807
11/24/2022, 11:29 AM