2.2.4.4 OAuth2

The OAuth2 type contains the information needed to connect to the OAuth2 server [RFC6749].

Namespace: http://schemas.datacontract.org/2004/07/Microsoft.DeviceRegistration.Entities

 <xs:element name="OAuth2">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="AuthCodeEndpoint" type="xs:anyURI" />
       <xs:element name="TokenEndpoint" type="xs:anyURI" />
     </xs:sequence>
   </xs:complexType>
 </xs:element>

AuthCodeEndpoint: The URL of the authorization endpoint on the OAuth2 server. This endpoint is used to request an authorization code.

TokenEndpoint: The URL of the token endpoint on the OAuth2 server. This endpoint is used to request access tokens in exchange for an authorization code.