View Source API Reference KeenAuth v0.2.2

Modules

Configuration

config :keen_auth,
  auth_controller: MyAppWeb.AuthenticationController,
  strategies: [
    azure_ad: [
      token: MyAppWeb.AADToken,
      strategy: Assent.Strategy.Azure,
      config: [
        client_id: "REPLACE_WITH_CLIENT_ID",
        client_secret: "REPLACE_WITH_CLIENT_SECRET",
        redirect_uri: "http://localhost:4000/azure_ad/callback"
      ]
    ],
    github: [
      token: MyAppWeb.GithubToken,
      strategy: Assent.Strategy.Github,
      config: [
        client_id: "REPLACE_WITH_CLIENT_ID",
        client_secret: "REPLACE_WITH_CLIENT_SECRET",
        redirect_uri: "http://localhost:4000/github/callback"
      ]
    ]
  ]

Methods to parse and modify configurations.

Fetches current user using storage from config and assigns it to conn