Replies: 1 comment 1 reply
-
How do you define it inline? Can you share that code? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This issue is related to the one on discord. Here is the link to the discord post for this
However, my use case is somewhat different as I want to use it not only for sign up or log in, I also want to use it to request permission for other google services and will need to specify the scope inline in the redirect. I use it for authentication but also use it to allow authenticated users give oauth permission to services like YouTube, Drive e.t.c. and this is meant to be a separate process outside the sign up or log in.
When I define the scope inside the ally configuration, it works okay, but specifying the scope inline in the
redirect
returns the errorOAuth 2 parameters can only have a single value: scope
However, what I did to handle the different use cases was to define two separate
ally
google configurations, one for normal authentication and one for another service. Here is a sample solution that I intend to useSo in my controllers I can do:
const google = ally.use('google')
for user authentication andconst google = ally.use('google_youtube')
for the YouTube serviceThe means that if I want to add permission request for another service I will have to manually add it to the config again.
Also, there seem to be no way to define
state
for the callback url.Can the awesome 🔥 adonisjs team look into this or is there something I am missing.
Beta Was this translation helpful? Give feedback.
All reactions