Logout Redirect

Syntax

{
    "Key": "redirect:on:logout",
    "Value": {
        "Type": "page_redirect|url_redirect|trigger_callback|default",
        "PageSlug": "string",
        "PageId": "numeric",
        "Url": "string",
        "Callback": "string"
    }
}

The properties PageSlug, PageId, Url, and Callback are required depending on the selected Type. For instance, if page_redirect type is chosen, then the PageSlug or PageId property must also be provided.

Examples

The example policy redirects user to the home page after logging out.

{
    "Param": {
        "Key": "redirect:on:logout",
        "Value": {
            "Type": "url_redirect",
            "Url": "/"
        }
    }
}

Definition

The logout redirect behavior is expressed in the AAM access policy as the param redirect:on:logout. The Value property contains attributes that define how to handle redirects.

The Type attribute defines what type of redirect to apply and can contain one of the following values:

Depending on the Type additional information may be required to fine-tune the redirect as follows:

Here is another example where we redirect a user to the page with id 7, if user is coming from certain IP range.

{
    "Param": [
        {
            "Key": "redirect:on:logout",
            "Value": {
                "Type": "page_redirect",
                "PageId": 7
            },
            "Condition": {
                "In": {
                    "${USER.ip}": "(*ip)9.84.23.0/16"
                }
            }
        }
    ]
}