Versions Compared

Key

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

...

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
languagenone
POST /:authentication_type_name/login
Accept: application/json

{
  "authentication_object": {
    ... # JSON output from tag
  }
}