Replies: 1 comment 1 reply
-
Hello @leivd As you noted, you might be able to use the {
"subject": "anonymous",
"extra": {
"foo": "bar"
},
"header": {
"foo": ["bar1", "bar2"]
},
"match_context": {
"regexp_capture_groups": ["http", "foo"],
"url": "http://domain.com/foo"
}
} But you mentioned that you would like to avoid another round trip. In that case, you could try storing custom data in the client that can be retrieved along with the login request using the request url. Both Login and Consent Requests have a request url which contains the original OAuth2 Authorize URL.
Please note that these are suggestions based on the information you provided and might not fully solve your problem. I recommended to thoroughly test these solutions in your environment. |
Beta Was this translation helpful? Give feedback.
-
Hello Ory Community!
We are having a bit of trouble with the oauth2_clients_credentials Authenticator limitation that no extra metadata about the client is available for the header Mutator.
Situation
We want to pass an extra piece of information to the servers behind Oathkeepers, this works fine with oauth2_introspection by adding the information to the access token using custom claims at refresh.
We would like to pass the same piece of information with oauth2_client_credentials.
Flow with oauth2_introspection
oauth2_client_credentials does not have any extra information, this is a problem for us.
A Hydrator Mutator could be used to add the required data, but we would like to avoid another round trip.
I hope to find a workaround that does not involve a request to yet another server. And I hope the Ory Community can help me find it!
Beta Was this translation helpful? Give feedback.
All reactions