[−][src]Function aspotify::authorization::auth_code_flow::get_authorization_url
pub async fn get_authorization_url<'_, '_, '_>(
client_id: &'_ str,
scopes: &'_ [Scope],
force_approve: bool,
redirect_uri: &'_ str
) -> String
Get the URL to redirect the user's browser to. Only URLs from this function can be used to make a new AuthCodeFlow.
force_approve
, if set, forces the user to approve the app again even if they already have.
Make sure that you have whitelisted the redirect_uri in your Spotify dashboard, and
redirect_uri
must not contain any query strings.
This method automatically sets the state parameter parameter which
AuthCodeFlow::from_redirect
then checks,
ensuring that fake redirect requests cannnot be done.