OauthMockServer v0.1.1 OauthMockServer.Capp11

A server that mocks Capp11 SSO responses

Link to this section Summary

Functions

Sends redirect response to the given url. The response will be sent with the status code defined within the connection, via Plug.Conn.put_status/2. If no status code is set, a 302 response is sent.

Link to this section Functions

Link to this function

authorize(conn)

Link to this function

ensure_resp_content_type(conn, content_type)

Link to this function

redirect(conn, url)

Sends redirect response to the given url. The response will be sent with the status code defined within the connection, via Plug.Conn.put_status/2. If no status code is set, a 302 response is sent.

Examples

iex> redirect(conn, "http://elixir-lang.org")
Link to this function

send_resp(conn, default_status, default_content_type, body)

Link to this function

user_info(conn)