Closed Ciboulette closed 4 years ago
The error is cryptic, but the authorization params are missing the userinfo scopes:
config :my_app, :pow_assent,
providers: [
google: [
client_id: "CLIENT_ID",
client_secret: "SECRET_CLIENT",
authorization_params: [scope: "https://www.googleapis.com/auth/calendar.events https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile"],
strategy: Assent.Strategy.Google
]
]
I think that's why reason you got this error.
Damn you're right! Thank you! it works!
Hello I have successfully managed to login with Google Strategy without authorization_params.
But now I would like to add some for my app, here's my config:
When I tried to login, it asks for the permissions for calendar etc and throw the following exception:
Am I missing something from the docs? I think we could add a real world example with authorization_params