Structure

DeviceAuthorizationFlow.DeviceAuthResponse

The response returned from the deviceFlowAuthorizationRequest() method. Used as the parameter in the authorizationResponseHandler(for:) method.

Declaration

struct DeviceAuthResponse

Overview

The verificationURI and userCode properties should be displayed or otherwise communicated to the end user with instructions to visit the URI (or scan the qrCode) on a secondary device (for example a mobile phone) and enter the user code.

Example display from RFC 8628:


+-----------------------------------------------+
|                                               |
|  Using a browser on another device, visit:    |
|  https://example.com/device                   |
|                                               |
|  And enter the code:                          |
|  WDJB-MJHT                                    |
|                                               |
+-----------------------------------------------+

Example display from RFC 8628:


|-------------------------------------------------|
|                                                 |
|  Scan the QR code or, using     |------------|  |
|  a browser on another device,   |[_]..  . [_]|  |
|  visit:                         | .  ..   . .|  |
|  https://example.com/device     | . .  . ....|  |
|                                 |.   . . .   |  |
|  And enter the code:            |[_]. ... .  |  |
|  WDJB-MJHT                      |------------|  |
|                                                 |
|-------------------------------------------------|

Topics

Instance Properties

Relationships

Conforms To