creamy-pizza-99993
06/01/2023, 1:16 PMcreamy-pizza-99993
06/01/2023, 1:35 PMbearer_token:
enabled: true
config:
force_method: GET
check_session_url: <http://kratos:4433/sessions/whoami>
preserve_path: true
preserve_query: true
subject_from: "identity.id"
extra_from: "@this"
token_from:
query_parameter: auth-code
shy-beach-55709
06/01/2023, 4:43 PMA mutator transforms the credentials from incoming requests to credentials that your backend understands. For example, the Authorization: basic header might be transformed to X-User: <subject-id>
So in your access rule you should define the authenticator handler bearer_token, and add the mutator that changes modifies the credentials to a kratos accepted format.creamy-pizza-99993
06/01/2023, 4:55 PM