mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-01-03 09:55:05 +01:00
Have the installed flow http server always listen on an ephemeral port.
Specifying a port of zero has the server listen on an ephemeral port. Many users may not be aware of that unless they have a background in networking where that's common practice. I'm also not able to think of any use cases where listening on a hardcoded port would be beneficial, so with this change I've opted to remove the ability entirely rather than simply documenting that almost everybody should specify zero.
This commit is contained in:
@@ -19,7 +19,7 @@ fn main() {
|
||||
client.clone(),
|
||||
ad,
|
||||
secret,
|
||||
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect(8081),
|
||||
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
|
||||
);
|
||||
let mut auth = Authenticator::new_disk(
|
||||
client,
|
||||
|
||||
Reference in New Issue
Block a user