Generates a signature using the HMAC-SHA1 algorithm
Namespace: DotNetNuke.Services.Authentication.OAuthAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public string GenerateSignature( Uri url, string token, string tokenSecret, string callbackurl, string oauthVerifier, string httpMethod, string timeStamp, string nonce, out string normalizedUrl, out List<QueryParameter> requestParameters ) |
Visual Basic |
---|
Public Function GenerateSignature ( url As Uri, token As String, tokenSecret As String, callbackurl As String, oauthVerifier As String, httpMethod As String, timeStamp As String, nonce As String, <OutAttribute> ByRef normalizedUrl As String, <OutAttribute> ByRef requestParameters As List(Of QueryParameter) ) As String |
Parameters
- url
- Type: System..::..Uri
The full url that needs to be signed including its non OAuth url parameters
- token
- Type: System..::..String
The token, if available. If not available pass null or an empty string
- tokenSecret
- Type: System..::..String
The token secret, if available. If not available pass null or an empty string
- callbackurl
- Type: System..::..String
paramcallbackurlM:DotNetNuke.Services.Authentication.OAuth.OAuthClientBase.GenerateSignature(System.Uri,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String@,System.Collections.Generic.List{DotNetNuke.Services.Authentication.OAuth.QueryParameter}@)
- oauthVerifier
- Type: System..::..String
This value MUST be included when exchanging Request Tokens for Access Tokens. Otherwise pass a null or an empty string
- httpMethod
- Type: System..::..String
The http method used. Must be a valid HTTP method verb (POST,GET,PUT, etc)
- timeStamp
- Type: System..::..String
paramtimeStampM:DotNetNuke.Services.Authentication.OAuth.OAuthClientBase.GenerateSignature(System.Uri,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String@,System.Collections.Generic.List{DotNetNuke.Services.Authentication.OAuth.QueryParameter}@)
- nonce
- Type: System..::..String
paramnonceM:DotNetNuke.Services.Authentication.OAuth.OAuthClientBase.GenerateSignature(System.Uri,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String@,System.Collections.Generic.List{DotNetNuke.Services.Authentication.OAuth.QueryParameter}@)
- normalizedUrl
- Type: System..::..String%
paramnormalizedUrlM:DotNetNuke.Services.Authentication.OAuth.OAuthClientBase.GenerateSignature(System.Uri,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String@,System.Collections.Generic.List{DotNetNuke.Services.Authentication.OAuth.QueryParameter}@)
- requestParameters
- Type: System.Collections.Generic..::..List<(Of <(<'QueryParameter>)>)>%
paramrequestParametersM:DotNetNuke.Services.Authentication.OAuth.OAuthClientBase.GenerateSignature(System.Uri,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String@,System.Collections.Generic.List{DotNetNuke.Services.Authentication.OAuth.QueryParameter}@)