프로퍼티 | 타입 | 설명 | |
---|---|---|---|
GetAccessToken | Task |
||
GetAccessTokenForGraph | Task |
||
GetClientContextWithAccessToken | ClientContext |
메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
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 |
리턴 | ClientContext |
public SPOAuthorization ( IOptions |
||
generalSettings | IOptions |
|
errorSettings | IOptions |
|
logTables | IOptions |
|
customLogger | ICustomLogger | |
httpContextAccessor | IHttpContextAccessor | |
리턴 | System |