Add documentation about redirect_uri - #53
Conversation
|
Hi @mluogh and thanks for you PR, however, I believe it's now quite correct - I believe it should be: @api.get("/login")
async def login(request: Request):
return sso.get_login_redirect(request.url_for("callback"))
@api.get("/callback")
async def callback(request: Request):
...Or something similar. Would you be up to updating the PR to reflect the actual usage or should I take care of it? Either way, thanks again for bringing this up, my understanding is that fastapi-sso's documentation is not very well written nor extensive. |
|
https://github.com/tomasvotava/fastapi-sso/blob/master/fastapi_sso/sso/base.py#L195 I believe putting verify_and_process in the callback itself is the correct thing since putting it here means it will eventually be propagated to https://github.com/tomasvotava/fastapi-sso/blob/master/fastapi_sso/sso/base.py#L271 |
|
Well, would you believe how little I know my own package? You are right, but this only applies after you had already passed the same |
|
That would be wonderful and makes the most sense to me. If you're busy, I could also send you a PR for that since I have a little bit of downtime. |
|
It would be awesome if you could do this ❤️ Could you please also wait for #60? I'll merge it in a minute, I'd like the new PR to be already using codecov. |
It was unclear to us that we needed it in verify_and_process and led to some debugging.