Skip to Content
Phoenix Web Development
book

Phoenix Web Development

by Brandon Richey
April 2018
Beginner to intermediate content levelBeginner to intermediate
406 pages
9h 33m
English
Packt Publishing
Content preview from Phoenix Web Development

Configuring Ueberauth in Google

We'll begin by configuring mix.exs, first with the list of running applications. This is the same as what we had to do to get Ueberauth and Ueberauth's Twitter strategy installed:

extra_applications: [:logger, :runtime_tools, :ueberauth, :ueberauth_twitter, :ueberauth_google]

Of course, we'll also have to add it to our list of dependencies under the deps function:

{:ueberauth_google, "~> 0.7"}

Now, we'll modify our config/config.exs file to include a new provider for Ueberauth. The providers key is just a list of the different providers and which strategy they use to log someone in, so we'll add Google to our list:

config :ueberauth, Ueberauth,  providers: [    twitter: {Ueberauth.Strategy.Twitter, []}, google: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Phoenix in Action

Phoenix in Action

Geoffrey Lessel
Real-Time Phoenix

Real-Time Phoenix

Stephen Bussey

Publisher Resources

ISBN: 9781787284197Supplemental Content