Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-3380

Allow to configure paths to skip in KeycloakOIDCFilter

    XMLWordPrintable

Details

    • Feature Request
    • Status: Closed
    • Minor
    • Resolution: Done
    • 2.0.0.Final
    • 2.1.0.CR1
    • Adapter - JEE
    • None

    Description

      When integrating Keycloak in existing applications it's often not feasible
      to redesign the url layout of an application. In those scenarios standard filter-mapping
      patterns are not flexible enough, e.g. if one needs to exclude static resources
      when a broad part of the base-path needs to be protected by the KeycloakOIDCFilter, e.g. /*.

      It would be helpful if the KeycloakOIDCFilter would allow configuring patterns for paths that should be skipped and just forwarded to the rest of the filterChain.

      An additional init parameter like "skip-pattern" could be used to configure
      a regex pattern that potentially matches multiple path patterns.
      E.g. in the case of JSF:

      <init-param>
        <param-name>keycloak.config.skipPattern</param-name>
        <param-value>^/(javax.faces.resource|error)/.*</param-value>
      </init-param>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            thomas.darimont@googlemail.com Thomas Darimont (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: