Свойство | Type | Description | |
---|---|---|---|
GetAccessToken | Task |
||
GetAccessTokenForGraph | Task |
||
GetClientContextWithAccessToken | ClientContext |
Méthode | Description | |
---|---|---|
GetClientContext ( string url ) : ClientContext |
This method will get the access token for the service and creats SharePoint ClientContext object and returns that object
|
|
GetGraphAccessToken ( ) : string |
This method will get the access token for the Microsoft Graph and returns that token
|
|
SPOAuthorization ( IOptions |
Constructor where GeneralSettings and ErrorSettings are injected
|
Méthode | Description | |
---|---|---|
GetAccessToken ( ) : Task |
This method will get access for the web api from the Azure Active Directory. This method internally uses the Authorization token sent by the UI application
|
|
GetAccessTokenForGraph ( ) : Task |
This method will get access for the web api from the Azure Active Directory. This method internally uses the Authorization token sent by the UI application
|
|
GetClientContextWithAccessToken ( string targetUrl, string accessToken ) : ClientContext |
Uses the specified access token to create a client context. For each and every request to SPO an authorization header will be sent. With out authorization header, SPO will reject the request
|
public GetClientContext ( string url ) : ClientContext | ||
url | string | The SharePoint Url for which the client context needs to be creatwed |
Résultat | ClientContext |
public SPOAuthorization ( IOptions |
||
generalSettings | IOptions |
|
errorSettings | IOptions |
|
logTables | IOptions |
|
customLogger | ICustomLogger | |
httpContextAccessor | IHttpContextAccessor | |
Résultat | System |