ExSwan.Plug.Phoenix (exswan_plug v0.1.0)

Copy Markdown View Source

Optional route macros for Phoenix applications.

This module does not depend on Phoenix. The generated calls are expanded in the application's router, where Phoenix is already available.

Summary

Functions

Adds the four conventional WebAuthn ceremony routes to the current Phoenix scope.

Functions

webauthn_routes(controller, opts \\ [])

(macro)

Adds the four conventional WebAuthn ceremony routes to the current Phoenix scope.

The controller must implement begin_registration/2, finish_registration/2, begin_authentication/2, and finish_authentication/2.