Getting Device Code
This section explains how to get a device code from Microsoft Azure.
The request header must contain an authorization token of the current session.
The following parameters must be posted as URL.
The identification number of the Office 365 organization. Can be obtained as described in Getting Organizations.
The server returns the following response to the client.
A successfully completed operation returns a response code 200 (OK).
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
The length of the response body.
The media type and syntax of the response body message: application/json; charset=utf-8
The response contains the following information.
Shows the code that you must copy.
Shows the verification URL that you must open and paste the copied code to the verification field.
Shows the lifespan of the code in milliseconds.
Shows the help message.
Authorization: Bearer <Access-Token>
"message": "To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code CHRG3E93P to authenticate."