dermesser/yup-oauth2

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

margual56 opened this issue · 1 comments

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!

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 :-)