C# Class OfficeDevPnP.PartnerPack.Infrastructure.MicrosoftGraphHelper

Datei anzeigen Open project: OfficeDev/PnP-Partner-Pack Class Usage Examples

Public Methods

Method Description
GetAccessTokenForCurrentUser ( String resourceId = null ) : String

This helper method returns and OAuth Access Token for the current user

GetNewGraphClient ( string accessToken = null ) : GraphServiceClient

Private Methods

Method Description
ForceOAuthChallenge ( ) : void

Method Details

GetAccessTokenForCurrentUser() public static method

This helper method returns and OAuth Access Token for the current user
public static GetAccessTokenForCurrentUser ( String resourceId = null ) : String
resourceId String The resourceId for which we are requesting the token
return String

GetNewGraphClient() public static method

public static GetNewGraphClient ( string accessToken = null ) : GraphServiceClient
accessToken string
return GraphServiceClient