-
Notifications
You must be signed in to change notification settings - Fork 787
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 4.3.0-kernel-upgrade
- Loading branch information
Showing
32 changed files
with
1,874 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
532 changes: 532 additions & 0 deletions
532
modules/distribution/product/src/main/startup-scripts/fips.bat
Large diffs are not rendered by default.
Oops, something went wrong.
459 changes: 459 additions & 0 deletions
459
modules/distribution/product/src/main/startup-scripts/fips.sh
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
.../distribution/resources/operation_policies/definitions/jwtClaimBasedAccessValidator_v1.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<class name="org.wso2.carbon.apimgt.gateway.mediators.ClaimBasedResourceAccessValidationMediator"> | ||
<property name="accessVerificationClaim" value = "{{accessVerificationClaim}}"/> | ||
<property name="accessVerificationClaimValue" value="{{accessVerificationClaimValue}}"/> | ||
<property name="accessVerificationClaimValueRegex" value="{{accessVerificationClaimValueRegex}}"/> | ||
<property name="shouldAllowValidation" value="{{shouldAllowValidation}}"/> | ||
</class> |
51 changes: 51 additions & 0 deletions
51
...ribution/resources/operation_policies/specifications/jwtClaimBasedAccessValidator_v1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"category": "Mediation", | ||
"name": "jwtClaimBasedAccessValidator", | ||
"version": "v1", | ||
"displayName": "JWT claim based access validator", | ||
"description": "This policy validates configured claim name and value in this policy with the claim name and value sent in the JWT access token to grant access to the API resource.", | ||
"applicableFlows": [ | ||
"request" | ||
], | ||
"supportedGateways": [ | ||
"Synapse" | ||
], | ||
"supportedApiTypes": [ | ||
"HTTP" | ||
], | ||
"policyAttributes": [ | ||
{ | ||
"name": "accessVerificationClaim", | ||
"displayName": "Access verification claim name", | ||
"description": "This should be the name the custom claim which is expected in the JWT access token.", | ||
"validationRegex": "^[a-zA-Z_]+$", | ||
"type": "String", | ||
"defaultValue": "aut", | ||
"required": true | ||
}, | ||
{ | ||
"name": "accessVerificationClaimValue", | ||
"displayName": "Access verification claim value", | ||
"description": "This should be the value of a custom claim which is expected in the JWT access token.", | ||
"type": "String", | ||
"defaultValue": "APPLICATION", | ||
"required": true | ||
}, | ||
{ | ||
"name": "accessVerificationClaimValueRegex", | ||
"displayName": "Access verification claim value regex", | ||
"description": "If a regex is provided, the claim values will be matched using this regex. Otherwise they will be checked for equality.", | ||
"type": "String", | ||
"defaultValue": "", | ||
"required": false | ||
}, | ||
{ | ||
"name": "shouldAllowValidation", | ||
"displayName": "Allow flow when claims are not matching", | ||
"description": "Tick this to allow the flow when the claims are not matching. Keeping this un-ticked will allow the flow only when the claims are matched.", | ||
"type": "Boolean", | ||
"defaultValue": "false", | ||
"required": false | ||
} | ||
] | ||
} |
2 changes: 1 addition & 1 deletion
2
modules/integration/tests-common/clients/admin/.openapi-generator/admin-api.yaml.sha256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
913b0f99d03f27dee037609be7975aca8be768047cea3b7c8598dd11a5a89a6a | ||
79b51370beba8f507666fe239fea0c86a211fc9f1f8dbf97264d13f09f0c147a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.