oauth2
oauth2 copied to clipboard
oauth2: add device flow support
Resolves merge conflicts in #356.
Also fixes some issues:
- Stops polling when the server responds with an unexpected error
- Uses correct types for the
expires_inandintervalproperties in the Device Authorization Response
Resolves #418.
Brilliant timing. I just checked Golang for support of the device flow today.
Brilliant timing. I just checked Golang for support of the device flow today.
I encountered some bugs while testing this code, @anderspitman. Please let me know if you encounter any unexpected behaviour. I'll try to write some tests this weekend.
@marcusirgens unfortunately I'm implementing a custom OAuth2 server, so I might wait until this is stable before using it, and might not be much help in testing. But if I do end up giving it a try I'll let you know.
Implemented in https://github.com/golang/oauth2/commit/e3fb0fb3af0ee7c0c62e31c393cbcfce6b2af5bf