Amur.Router (amur v0.2.4)

Copy Markdown

Plug router for the Amur OAuth flow.

Mount it under your router, for example with forward "/auth", Amur.Router (in Phoenix, inside a browser pipeline and with alias: false). It exposes, relative to the mount point:

  • GET /auth/:provider - start the OAuth flow
  • GET /auth/:provider/callback - handle the provider callback

Summary

Functions

call(conn, opts)

init(opts)