defmodule.io
  • Home
  • Purpose
  • Contribute
Subscribe

oauth2

A collection of 1 post
Setting up Oauth2 in Phoenix
oauth2 Featured

Setting up Oauth2 in Phoenix

First add the dependency to your mix.exs # /mix.exs defp deps do [ ... {:ueberauth_google, "~> 0.10"} ] end Then configure Ueberauth within your application # /config.exs ... # Ueberauth Config config :ueberauth, Ueberauth, providers: [ google: {Ueberauth.Strategy.Google, [default_scope: "email profile openid"] } ] config :ueberauth, Ueberauth.Strategy.Google.OAuth, client_id: # generated
Dec 14, 2022 2 min read
defmodule.io © 2025
  • Sign up
Powered by Ghost