...
Note |
---|
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 output, but everything needed for the payload in authentication endpoints is returns in JSON format. With this you can call the following endpoint in order to login through a JSON request:
Code Block | ||
---|---|---|
| ||
POST /:authentication_type_name/login
Accept: application/json
{
"authentication_object": {
... # JSON output from tag
}
} |