Search Results for

    Show / Hide Table of Contents

    Class OAuth2MessageFactory

    Inheritance
    System.Object
    OAuth2MessageFactory
    Namespace: SharePointPnP.IdentityModel.Extensions.S2S.Protocols.OAuth2
    Assembly: PnP.Framework.dll
    Syntax
    public static class OAuth2MessageFactory : object

    Methods

    CreateAccessTokenRequestWithAuthorizationCode(String, String, String, String)

    Declaration
    public static OAuth2AccessTokenRequest CreateAccessTokenRequestWithAuthorizationCode(string clientId, string clientSecret, string authorizationCode, string resource)
    Parameters
    System.String clientId

    System.String clientSecret

    System.String authorizationCode

    System.String resource

    Returns
    OAuth2AccessTokenRequest

    CreateAccessTokenRequestWithAuthorizationCode(String, String, String, Uri, String)

    Declaration
    public static OAuth2AccessTokenRequest CreateAccessTokenRequestWithAuthorizationCode(string clientId, string clientSecret, string authorizationCode, Uri redirectUri, string resource)
    Parameters
    System.String clientId

    System.String clientSecret

    System.String authorizationCode

    System.Uri redirectUri

    System.String resource

    Returns
    OAuth2AccessTokenRequest

    CreateAccessTokenRequestWithClientCredentials(String, String, String)

    Declaration
    public static OAuth2AccessTokenRequest CreateAccessTokenRequestWithClientCredentials(string clientId, string clientSecret, string scope)
    Parameters
    System.String clientId

    System.String clientSecret

    System.String scope

    Returns
    OAuth2AccessTokenRequest

    CreateAccessTokenRequestWithRefreshToken(String, String, String, String)

    Declaration
    public static OAuth2AccessTokenRequest CreateAccessTokenRequestWithRefreshToken(string clientId, string clientSecret, string refreshToken, string resource)
    Parameters
    System.String clientId

    System.String clientSecret

    System.String refreshToken

    System.String resource

    Returns
    OAuth2AccessTokenRequest

    CreateFromEncodedResponse(IO.StreamReader)

    Declaration
    public static OAuth2Message CreateFromEncodedResponse(IO.StreamReader reader)
    Parameters
    System.IO.StreamReader reader

    Returns
    OAuth2Message

    CreateFromEncodedResponse(String)

    Declaration
    public static OAuth2Message CreateFromEncodedResponse(string responseString)
    Parameters
    System.String responseString

    Returns
    OAuth2Message

    Back to top PnP Framework
    Generated by DocFX with Material UI
    spacer