Files
OwinOAuthProviders/src/Owin.Security.Providers.Evernote/Provider/IEvernoteAuthenticationProvider.cs
Guillaume 5626c02442 Added provider for Evernote (#197)
* Evernote provider is now available.
Based on Evernote SDK for .NET and the obsolete doc (ie. https://dev.evernote.com/doc/articles/authentication.php) (Step 3 is POST, not GET)

* Fix SyncrhonizationContext deadlock caused by ASP.NET site

* Evernote provider now working trought Xamarin OAuthAuthenticator and Identity Server 3

* Add claims for notestoreuri and accesstoken

* Evernote OK, before cleanup

* Cleanup

* Remove my credentials in demo project.

* Change the default URL to lower case
2017-03-04 20:30:56 -05:00

24 lines
1.2 KiB
C#

using System.Threading.Tasks;
namespace Owin.Security.Providers.Evernote
{
/// <summary>
/// Specifies callback methods which the <see cref="EvernoteAuthenticationMiddleware"></see> invokes to enable developer control over the authentication process. />
/// </summary>
public interface IEvernoteAuthenticationProvider
{
/// <summary>
/// Invoked whenever Evernote successfully authenticates a user
/// </summary>
/// <param name="context">Contains information about the login session as well as the user <see cref="System.Security.Claims.ClaimsIdentity"/>.</param>
/// <returns>A <see cref="Task"/> representing the completed operation.</returns>
Task Authenticated(EvernoteAuthenticatedContext context);
/// <summary>
/// Invoked prior to the <see cref="System.Security.Claims.ClaimsIdentity"/> being saved in a local cookie and the browser being redirected to the originally requested URL.
/// </summary>
/// <param name="context"></param>
/// <returns>A <see cref="Task"/> representing the completed operation.</returns>
Task ReturnEndpoint(EvernoteReturnEndpointContext context);
}
}