Open madurangasiriwardena opened 4 years ago
The same behavior is observed for the below request as well.
curl -X POST \
https://localhost:9443/t/carbon.super/api/server/v1/claim-dialects/local/claims \
-H 'Accept: */*' \
-H 'Accept-Encoding: gzip, deflate' \
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Length: 446' \
-H 'Content-Type: application/json' \
-H 'Cookie: requestedURI=../../api/server/v1/identity-governance/UGFzc3dvcmQgUG9saWNpZXM; JSESSIONID=A0AE8C744B8226F17B1F8492CF76EDED' \
-H 'Host: localhost:9443' \
-H 'cache-control: no-cache' \
-d '{
"claimURI": "http://wso2.org/claims/dummyemailaddress",
"description": "Dummy Email Address",
"displayOrder": 6,
"displayName": "Dummy Email",
"readOnly": false,
"regEx": "^\\S+@\\S+$",
"required": true,
"supportedByDefault": true,
"attributeMapping": [
{
"mappedAttribute": "dummymail",
"userstore": "PRIMARY"
}
],
"properties": [
{
"key": "isVerifiable",
"value": "true"
}
]
}
'
Sample request
Response for the 2nd request