/// <summary> /// This method builds derived from the request token a valid authorization url which can be used /// for web applications /// </summary> /// <param name="configuration"></param> /// <param name="DropBoxRequestToken"></param> /// <returns></returns> static public String GetDropBoxAuthorizationUrl(DropBoxConfiguration configuration, DropBoxRequestToken DropBoxRequestToken) { // build the auth url return(OAuthUrlGenerator.GenerateAuthorizationUrl(configuration.AuthorizationTokenUrl.ToString(), configuration.AuthorizationCallBack.ToString(), DropBoxRequestToken.RealToken)); }
public OAuthToken GetRequestToken(OAuthServiceContext svcContext, OAuthConsumerContext conContext) { // generate the url String requestTokenUrl = OAuthUrlGenerator.GenerateRequestTokenUrl(svcContext.RequestTokenUrl, conContext); // get the token return(GetToken(requestTokenUrl)); }
public static String GetGoogleDocsAuthorizationUrl(GoogleDocsConfiguration configuration, GoogleDocsRequestToken token) { return(OAuthUrlGenerator.GenerateAuthorizationUrl(configuration.OAuthAuthorizeTokenUrl.ToString(), configuration.AuthorizationCallBack.ToString(), token.RealToken)); }
public string GetSignedUrl(string resourceUrl, OAuthConsumerContext conContext, OAuthToken accessToken, Dictionary <string, string> parameter) { return(OAuthUrlGenerator.GenerateSignedUrl(resourceUrl, WebRequestMethodsEx.Http.Post, conContext, accessToken, parameter)); }
public string GetProtectedResourceUrl(string resourceUrl, OAuthConsumerContext conContext, OAuthToken accessToken, Dictionary <string, string> parameter, string webMethod) { // build url return(OAuthUrlGenerator.GenerateSignedUrl(resourceUrl, webMethod, conContext, accessToken, parameter)); }
public OAuthToken GetAccessToken(OAuthServiceContext svcContext, OAuthConsumerContext conContext, OAuthToken requestToken) { var url = OAuthUrlGenerator.GenerateAccessTokenUrl(svcContext.AccessTokenUrl, conContext, requestToken); return(GetToken(url)); }
public OAuthToken GetRequestToken(OAuthServiceContext svcContext, OAuthConsumerContext conContext) { var url = OAuthUrlGenerator.GenerateRequestTokenUrl(svcContext.RequestTokenUrl, conContext); return(GetToken(url)); }