Testing Strategy for Ueberauth
-
Add
:ueberauth_testing
to your list of dependencies inmix.exs
:def deps do [{:ueberauth_testing, "~> 1.0"}] end
-
Add Testing to your Ueberauth configuration:
config :ueberauth, Ueberauth, providers: [ testing: {Ueberauth.Strategy.Testing, []} ]
-
Test your oauth callbacks:
get(auth_path(conn, :callback, "testing"))
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ueberauth_testing.