Skip to content
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

[Question] - Get the signin link (custom message) #192

Open
margual56 opened this issue Jan 25, 2023 · 1 comment
Open

[Question] - Get the signin link (custom message) #192

margual56 opened this issue Jan 25, 2023 · 1 comment

Comments

@margual56
Copy link

Context

I'm trying to get the token for the user, with a limited scope.

What I want to do

Currently, the crate automatically prints "Please direct your browser to <URI> and follow the instructions displayed there."

However, I want to be the one telling the user what to do. I want to retrieve the link that the user has to open, and show it how I want.

Question (summary)

How can I get the URI for the user to open after calling the function?

Thanks!

@dermesser
Copy link
Owner

It sounds like you are looking for the AuthenticatorBuilder<C, InstalledFlow>::flow_delegate() method (https://docs.rs/yup-oauth2/latest/yup_oauth2/authenticator/struct.AuthenticatorBuilder.html#impl-AuthenticatorBuilder%3CC%2C%20InstalledFlow%3E) - does it look helpful? At least that's how I understand your question :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants