Uploaded image for project: 'apiman (API Management)'
  1. apiman (API Management)
  2. APIMAN-607

Forward Keycloak Token info broken in Keycloak OAuth Policy plugin

    XMLWordPrintable

Details

    • Hide

      1) Install the Keycloak OAuth Policy plugin.
      2) Create an OAuth policy for a service. (be sure to load a fixed version of jsoneditor.js or the config form won't display correctly).
      3) In the Forward Keycloak Token Information section, map some non-username fields to header values. (ensure the test user actually has some values to check against!)
      4) Inspect the forwarded requests for the header values.

      Show
      1) Install the Keycloak OAuth Policy plugin. 2) Create an OAuth policy for a service. (be sure to load a fixed version of jsoneditor.js or the config form won't display correctly). 3) In the Forward Keycloak Token Information section, map some non-username fields to header values. (ensure the test user actually has some values to check against!) 4) Inspect the forwarded requests for the header values.

    Description

      In my keycloak oauth policy, I select various token fields (e.g. username, subject, email, name, etc.) to be forwarded to the service as custom headers. Unfortunately, all of the custom header values are set to username.

      Attachments

        Activity

          People

            msavy_jira Marc Savy (Inactive)
            rob3c Robert Raiford (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: