Class ServiceOAuthAuthenticatorEndpoint
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Core.ServiceModel
Assembly: Terrasoft.Core.ServiceModel.dll
Syntax
[CoreServiceRoute("/ServiceModel/")]
[CoreServiceRoute("/0/ServiceModel/")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
[ServiceBehavior(Namespace = "http://Terrasoft.WebApp.ServiceModel")]
public class ServiceOAuthAuthenticatorEndpoint : BaseService, IServiceOAuthAuthenticatorEndpoint
Constructors
ServiceOAuthAuthenticatorEndpoint()
Creates instance of Terrasoft.Social.OAuth.ServiceOAuthAuthenticator.
Declaration
public ServiceOAuthAuthenticatorEndpoint()
Methods
AuthorizationCodeRedirectHandler(String, String)
Handle and process authorization code.
Declaration
public async Task AuthorizationCodeRedirectHandler(string code, string state)
Parameters
Type | Name | Description |
---|---|---|
System.String | code | |
System.String | state |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
GetAuthorizationGrantUrl(String)
Returns authorization grant url.
Declaration
public string GetAuthorizationGrantUrl(string appId)
Parameters
Type | Name | Description |
---|---|---|
System.String | appId | Application id. |
Returns
Type | Description |
---|---|
System.String | Authorization grant url. |
GetOAuthClientSecret(String)
Returns OAuth client secret key.
Declaration
public string GetOAuthClientSecret(string appId)
Parameters
Type | Name | Description |
---|---|---|
System.String | appId | Application id. |
Returns
Type | Description |
---|---|
System.String | Client secret key. |
RemoveOAuthApplication(String)
Declaration
public void RemoveOAuthApplication(string applicationId)
Parameters
Type | Name | Description |
---|---|---|
System.String | applicationId |
RemoveOAuthUser(RemoveOAuthAppUserService)
Removes token by OAuthAppUser.
Data contract.Declaration
public async Task RemoveOAuthUser(RemoveOAuthAppUserService contract)
Parameters
Type | Name | Description |
---|---|---|
RemoveOAuthAppUserService | contract |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |