p2 / OAuth2

OAuth2 framework for macOS and iOS, written in Swift.
Other
1.14k stars 275 forks source link

Implement the device grant flow #416

Closed DominikPalo closed 5 months ago

DominikPalo commented 5 months ago

This PR implements the device grant authorization flow (as described in the RFC 8628). Although this flow is designed for devices that either lack a browser to perform a user-agent-based authorization or are input constrained, it is also very useful for applications not allowed to start their own webserver (loopback URL) or register a custom URL scheme to finish the authorization code grant flow.

We've been using this implementation for several months (from our private fork) without any issues.