...
Note: Do not forget to display the output of request.flash, since that contains potential error messages.
JSON endpoint
Also accepts parameter output_as
, which currently only accepts "json"
as value. If this parameter is set, no html is returned, but everything needed for the payload in authentication endpoints is returned in JSON format. With this you can call the following endpoint in order to logout through a JSON request:
Code Block |
---|
DELETE /:authentication_type_name/logout
Accept: application/json
{
"authentication_object": {
... # JSON output from tag
}
}
|