oauth2-rs icon indicating copy to clipboard operation
oauth2-rs copied to clipboard

Added Auth0 device authorization flow example

Open schoenenberg opened this issue 3 years ago • 2 comments

Hi,

thank you for this great library! I have used it to implement a CLI using Auth0. I would like to contribute this example back, because it took me some time to figure out a strange compiler error concerning the request_async method for the oauth2::DeviceAccessTokenRequest.

Best regards, Max

schoenenberg avatar Aug 31 '21 08:08 schoenenberg

OMG. thank you very much for this!

Turns out the missing point to the one which already exists in the docs: https://docs.rs/oauth2/latest/oauth2/#device-code-flow

is

    .set_auth_type(AuthType::RequestBody);

Morishiri avatar Apr 26 '22 16:04 Morishiri

Thank you for the this example. It is very helpful.

michaeljones avatar Jan 03 '24 08:01 michaeljones