This documentation is for WSO2 Identity Server 5.6.0 . View documentation for the latest release.

All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Select the request type as POST and provide the resource path as https://localhost:9443/api/identity/entitlement/decision/homepdp
  2. In the Authorization tab, for Type, select Basic Auth, and provide admin/admin as the Username and Password. Click Update Request
     
  3. In the Headers tab, provide the values as indicated below:
    • Authorization: Basic YWRtaW46YWRtaW4= (Base 64 encoded username:password)
    • Content-Type: application/json or application/xml
    • Accept: application/json or application/xml


    In the body tab, copy and paste the following code and click Send.

    Code Block
    titleIn JSON
    {
        "Request": {
            "Action": {
                "Attribute": [
                    {
                        "AttributeId": "urn:oasis:names:tc:xacml:1.0:action:action-id",
                        "Value": "read"
                    }
                ]
            },
            "Resource": {
                "Attribute": [
                    {
                        "AttributeId": "urn:oasis:names:tc:xacml:1.0:resource:resource-id",
                        "Value": "http://127.0.0.1/service/very_secure/"
                    }
                ]
            }
        }
    }

    The JSON response you get is similar to the following:


    If you are using XML, copy the following XML code, paste it in the body, and click Send.

    Code Block
    <Request CombinedDecision="false" ReturnPolicyIdList="false" xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17">
        <Attributes Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action">
            <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" IncludeInResult="false">
                <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">read</AttributeValue>
            </Attribute>
        </Attributes>
        <Attributes Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource">
            <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" IncludeInResult="false">
                <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">http://127.0.0.1/service/very_secure/ </AttributeValue>
            </Attribute>
        </Attributes>
    </Request>

    The XML response is similar to the following:
     

Note
titleFor Tenant Users

The above resource path is only for Carbon super users. If the user is a tenant user the resource path should be: https://localhost:9443/t/{tenant_domain}/api/identity/entitlement/decision/homepdp.

So if the tenant domain is abc.com, the resource path should be: https://localhost:9443/t/abc.com/api/identity/entitlement/decision/homepdp.