Class HTTPHeaderClaimsSource

  • All Implemented Interfaces:
    Serializable, ClaimSource

    public class HTTPHeaderClaimsSource
    extends BasicClaimsSourceImpl
    This is for the specific case that claims are passed through the headers. Each starts with the caput and every claim with this caput is processed (caput is removed) and added. E.g.
         OIDC_CLAIM_sub
     
    sets the "sub" claim.

    In short, this filters headers based on a configurable prefix.. Any prefixed header has the prefix removed and the key-value pair returned as a claim. So if there is a header

    OIDC_CLAIM_my_claim = foo

    Then a claim of "my_claim" with a value of "foo" will be asserted.

    Caveat

    This may be set in the handler attribute of the server

    Created by Jeff Gaynor
    on 3/15/17 at 2:41 PM

    See Also:
    Serialized Form