OAuth2Manager.RequestAuthWithParamsAsync 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.
Initiates an auth request for a user in the user's default browser through a client app.
public:
static IAsyncOperation<AuthRequestResult ^> ^ RequestAuthWithParamsAsync(WindowId parentWindowId, Uri ^ authEndpoint, AuthRequestParams ^ params);
static IAsyncOperation<AuthRequestResult> RequestAuthWithParamsAsync(WindowId const& parentWindowId, Uri const& authEndpoint, AuthRequestParams const& params);
public static IAsyncOperation<AuthRequestResult> RequestAuthWithParamsAsync(WindowId parentWindowId, System.Uri authEndpoint, AuthRequestParams params);
function requestAuthWithParamsAsync(parentWindowId, authEndpoint, params)
Public Shared Function RequestAuthWithParamsAsync (parentWindowId As WindowId, authEndpoint As Uri, params As AuthRequestParams) As IAsyncOperation(Of AuthRequestResult)
Parameters
- parentWindowId
- WindowId
The parent window for the auth request.
- params
- AuthRequestParams
The AuthRequestParams containing the auth information for the request.
Returns
An IAsyncOperation that returns an AuthRequestResult.
Examples
See the Authorization code request section of Implement OAuth functionality in Windows apps for an example of how to use this method to initiate an authorization code request.