-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customizable redirect URL through LoginOptions #20
Conversation
Thanks for the PR! I think it looks good. I would just prefer to make a few tweaks. Mainly things I (or clippy) might do differently in Rust. I am happy to merge the PR as is, and follow up with that myself. Or I can tell you what I mean, and leave that to you. As you like, don't feel pressured. Also, I think (from what I say) the change should be mostly backwards compatible. Except for creating a new structure (so good idea with the new function). I guess this would mean creating a new minor release, which it fine, just checking. |
Thanks for taking the time to review the PR! I'm glad to hear that you find the changes generally good. I appreciate your willingness to make a few tweaks for Rust conventions and Clippy suggestions. I trust your expertise, and I'm more than happy to have you handle those adjustments. Regarding the backward compatibility and the potential need for a new minor release, I agree, and I believe it's a reasonable step to ensure a smooth transition for users. Feel free to let me know how you'd like to proceed, and thanks again for your time and feedback! |
Clippy was actually happy, it was just me :) … here is what I changed, just some small things: d51af31 I also upticked the version to 0.8.0 … I those changes look good from your side, just ping me and I will do the 0.8.0 release. |
This looks great! Feel free to release whenever you like. |
And released as |
Hi @ctron, I might be doing something wrong but I can't seem to have the login options to work.
The generated signin url query string contains:
|
I'm using Auth0 as IDP and they do not support wildcard redirect url... So I was planning to use a /callback?return_url= in order to perform a redirection on my side... is this a good idea? I do not see how to do this otherwise :(. Thanks for any help. |
I am not sure I understand what's wrong or what the context is. Maybe it makes sense taking this to a dedicated issue or discussion. |
Description
I have made enhancements to the
LoginOptions
structure in the Yew-OAuth2 crate to provide better flexibility and functionality. The changes include:redirect_url
to allow users to define a custom redirect URL.start_login
function to consider the providedredirect_url
if available, otherwise fallback to the current URL.Related issues
Closes #14