Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove :applications instructions from readme #85

Merged
merged 1 commit into from
Sep 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,7 @@
end
```

3. Add the strategy to your applications:

```elixir
def application do
[
applications: [:ueberauth_google]
]
end
```

4. Add Google to your Überauth configuration:
3. Add Google to your Überauth configuration:

```elixir
config :ueberauth, Ueberauth,
Expand All @@ -43,7 +33,7 @@
]
```

5. Update your provider configuration:
4. Update your provider configuration:

Use that if you want to read client ID/secret from the environment
variables in the compile time:
Expand All @@ -63,7 +53,7 @@
client_secret: {System, :get_env, ["GOOGLE_CLIENT_SECRET"]}
```

6. Include the Überauth plug in your controller:
5. Include the Überauth plug in your controller:

```elixir
defmodule MyApp.AuthController do
Expand All @@ -73,7 +63,7 @@
end
```

7. Create the request and callback routes if you haven't already:
6. Create the request and callback routes if you haven't already:

```elixir
scope "/auth", MyApp do
Expand All @@ -84,7 +74,7 @@
end
```

8. Your controller needs to implement callbacks to deal with `Ueberauth.Auth` and `Ueberauth.Failure` responses.
7. Your controller needs to implement callbacks to deal with `Ueberauth.Auth` and `Ueberauth.Failure` responses.

For an example implementation see the [Überauth Example](https://github.com/ueberauth/ueberauth_example) application.

Expand Down