Schema for OAuth Policies

The supported OAuth policies use the following OAuth assertion schema:

OAuth Policy Schema

<xsd:complexType name="OAuthAssertion">  
   <xsd:sequence> 
     <xsd:element name="Provider" type="xsd:string" minOccurs="1"      maxOccurs="1" /> 
     <xsd:element name="ClientID" type="xsd:string" minOccurs="1"      maxOccurs="1" />
     <xsd:element name="ClientSecret" type="xsd:string"      minOccurs="1" maxOccurs="1" />  
     <xsd:element name="CallbackURI" type="xsd:string"      minOccurs="0" maxOccurs="1" /> 
     <xsd:element name="Scopes" type="xsd:string" minOccurs="0"      maxOccurs="1" /> 
     <xsd:choice>
       <xsd:element name="AuthorizationEndpoint" type="xsd:string"        minOccurs="1" maxOccurs="1" /> 
       <xsd:element name="TokenEndpoint" type="xsd:string"        minOccurs="1" maxOccurs="1" /> 
     </xsd:choice> 
     <xsd:element name="Username" type="xsd:string" minOccurs="0"      maxOccurs="1" /> 
     <xsd:element name="Password" type="xsd:string" minOccurs="0"      maxOccurs="1" /> 
     <xsd:element name="AccessToken" type="xsd:string"      minOccurs="0" maxOccurs="1" />
     <xsd:element name="RefreshToken" type="xsd:string"      minOccurs="0" maxOccurs="1" /> 
     <xsd:element name="TokenValidator" type="xsd:string"      minOccurs="0" maxOccurs="1" /> 
     <xsd:element name="TokenType" type="tpa:EnumTokenType"      minOccurs="0" maxOccurs="1" default="Query"/> 
   </xsd:sequence> 
</xsd:complexType>