Skip to content

Commit

Permalink
:google strategy fixed (#881)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoripa authored Jan 11, 2025
1 parent 1574fd8 commit 1db515b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/ash_authentication/strategies/google/dsl.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,17 @@ defmodule AshAuthentication.Strategy.Google.Dsl do
""",
auto_set_fields: [icon: :google, assent_strategy: Google]
})
|> Custom.set_defaults(Google.default_config([]))
|> Custom.set_defaults(
base_url: "https://www.googleapis.com",
authorize_url: "https://accounts.google.com/o/oauth2/v2/auth",
token_url: "/oauth2/v4/token",
user_url: "/oauth2/v3/userinfo",
authorization_params: [
scope:
"https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile"
],
auth_method: :client_secret_post
)
end

defp strategy_override_docs(strategy) do
Expand Down

0 comments on commit 1db515b

Please sign in to comment.