AuthRequestParams.CreateForAuthorizationCodeRequest Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateForAuthorizationCodeRequest(String) |
Helper method to create an authorization code grant request ( |
CreateForAuthorizationCodeRequest(String, Uri) |
Helper method to create an authorization code grant request ( |
CreateForAuthorizationCodeRequest(String)
Helper method to create an authorization code grant request (code
response type) with the required parameters.
public:
static AuthRequestParams ^ CreateForAuthorizationCodeRequest(Platform::String ^ clientId);
/// [Windows.Foundation.Metadata.Overload("CreateForAuthorizationCodeRequest")]
static AuthRequestParams CreateForAuthorizationCodeRequest(winrt::hstring const& clientId);
[Windows.Foundation.Metadata.Overload("CreateForAuthorizationCodeRequest")]
public static AuthRequestParams CreateForAuthorizationCodeRequest(string clientId);
function createForAuthorizationCodeRequest(clientId)
Public Shared Function CreateForAuthorizationCodeRequest (clientId As String) As AuthRequestParams
Parameters
- clientId
-
String
Platform::String
winrt::hstring
The client ID for the request.
Returns
The created AuthRequestParams object.
- Attributes
Examples
See the Authorization code request section of Implement OAuth functionality in Windows apps for an example of how to use this method to create an authorization code request.
Applies to
CreateForAuthorizationCodeRequest(String, Uri)
Helper method to create an authorization code grant request (code
response type) with the required parameters.
public:
static AuthRequestParams ^ CreateForAuthorizationCodeRequest(Platform::String ^ clientId, Uri ^ redirectUri);
/// [Windows.Foundation.Metadata.Overload("CreateForAuthorizationCodeRequest2")]
static AuthRequestParams CreateForAuthorizationCodeRequest(winrt::hstring const& clientId, Uri const& redirectUri);
[Windows.Foundation.Metadata.Overload("CreateForAuthorizationCodeRequest2")]
public static AuthRequestParams CreateForAuthorizationCodeRequest(string clientId, System.Uri redirectUri);
function createForAuthorizationCodeRequest(clientId, redirectUri)
Public Shared Function CreateForAuthorizationCodeRequest (clientId As String, redirectUri As Uri) As AuthRequestParams
Parameters
- clientId
-
String
Platform::String
winrt::hstring
The client ID for the request.
Returns
The created AuthRequestParams object.
- Attributes
Examples
See the Authorization code request section of Implement OAuth functionality in Windows apps for an example of how to use this method to create an authorization code request.