Closed rmblau closed 1 year ago
Just noticed this is in fact a starlette bug, closing issue
do you have the github link of that Starlette bug? thanks
@rmblau This PR seems not enough to resolve this error: #533
In my case wrapping the oauth.google.authorize_redirect()
with str
does the trick:
@app.get("/login/google")
async def login_via_google(request: Request):
redirect_uri = request.url_for('auth_via_google')
return await oauth.google.authorize_redirect(request, str(redirect_uri)) # wrap with str()
In my case wrapping the
oauth.google.authorize_redirect()
withstr
does the trick:@app.get("/login/google") async def login_via_google(request: Request): redirect_uri = request.url_for('auth_via_google') return await oauth.google.authorize_redirect(request, str(redirect_uri)) # wrap with str()
hey! thanks for this workaround, its also working for me!
Describe the bug
In 1.1.0 the redirect uri was a string, in 1.2.0 the same code breaks because the redirect_uri is a URL object. The docs do not mention this change nor can I locate documentation on how to utilize this object.
Error Stacks
put error stacks here