Hello , im using keto as an authorizer and i have ...
# talk-oathkeeper
f
Hello , im using keto as an authorizer and i have this config in oathkeeper ,
{
"authorizer": {
"handler": "remote_json",
"config": {
"remote": "<http://keto:4466/check>",
"payload": "{\"namespace\": \"default-namespace\", \"subject\": \"{{ print .Subject }}\", \"object\": \"token:and:keto\", \"relation\": \"get\"}"
}
}
}
What does
.Subject
hold ?
👀 2
w
as in, it depends on which authenticator you are using
f
we are using kratos and session cookie as authenticator
unfortunately all of this stuff always requires a little bit of fiddling around, best is to look at the test and work your way up from there: https://github.com/ory/oathkeeper/blob/d942c043aa2370b87e0dd822440ad39d809755f9/pipeline/authn/authenticator_cookie_session_test.go