Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AdfsWebApiApplication: Add Support for Custom Access Control Policy Parameters #20

Open
X-Guardian opened this issue Nov 15, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@X-Guardian
Copy link
Owner

X-Guardian commented Nov 15, 2019

To support custom Access Control Policy Parameters, the MSFT_AdfsAccessControlPolicyParameters class needs extending with the following additional parameters:

Parameter Type ValueMap Description
ClaimsParameter MSFT_AdfsClaim Array Specifies the claims to match in the request
GroupExceptionParameter String Array Specifies the exception group name
ClaimsExceptionParameter MSFT_AdfsClaim Array Specifies the exception claims to match in the request

The MSFT_AdfsClaim class would contain the following properties:

Parameter Type ValueMap Description
ClaimType String Specifies the claim type
Operator String "Equals", "IsPresent", "RegexMatches", "Contains", "StartsWith", "EndsWith", "IssuerEquals", "OriginalIssuerEquals" Specifies the claim operator
Value String Specifies the claim value

Example AccessControlPolicyParameters property:

AccessControlPolicyParameters = MSFT_AdfsAccessControlPolicyParameter
@{
    GroupParameter           = @(
        'CONTOSO\AppGroup1 Users'
        'CONTOSO\AppGroup1 Admins'
    )
    ClaimsParameter          = @(
        MSFT_AdfsClaim
        {
            ClaimType = 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name'
            Operator  = 'Equals'
            Value     = 'test'
        }
    )
    GroupExceptionParameter  = @(
        'CONTOSO\AppGroup1 Banned Users'
        'CONTOSO\AppGroup1 Banned Admins'
    )
    ClaimsExceptionParameter = @(
        MSFT_AdfsClaim
        {
            ClaimType = 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name'
            Operator  = 'Equals'
            Value     = 'test2'
        }
    )
}
@X-Guardian X-Guardian added the enhancement New feature or request label Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant