C# Class PhotoSharingApp.AppService.Helpers.DefaultUserRegistrationReferenceProvider

Provides operations to help identify the User accessing the service via HttpRequest.
Inheritance: IUserRegistrationReferenceProvider
Datei anzeigen Open project: Microsoft/Appsample-Photosharing

Public Methods

Method Description
GetCurrentUserRegistrationReferenceAsync ( ClaimsPrincipal principal, HttpRequestMessage request ) : Task

Extracts the User details accessing the service as a unique id in the form of "{authprovider}:{uniqueId}" using ProviderCrednetials for the logged in user.

Method Details

GetCurrentUserRegistrationReferenceAsync() public method

Extracts the User details accessing the service as a unique id in the form of "{authprovider}:{uniqueId}" using ProviderCrednetials for the logged in user.
public GetCurrentUserRegistrationReferenceAsync ( ClaimsPrincipal principal, HttpRequestMessage request ) : Task
principal System.Security.Claims.ClaimsPrincipal The principal accessing the service.
request System.Net.Http.HttpRequestMessage The HttpRequest used to access the service.
return Task