Files
OwinOAuthProviders/src/Owin.Security.Providers.LinkedIn/Provider/LinkedInApplyRedirectContext.cs
MartinPaulLippert 6cfab46b9d Added LinkedInAuthentication ApplyRedirect (#187)
* Added ApplyRedirect to LinkedInAuthentication Provider
Changed LinkedInAuthenticationHandler to use ApplyRedirect
Added LinkedInApplyRedirectContext

Changes allow a developer to override the authorization endpoint
2016-11-01 18:12:31 -04:00

39 lines
1.4 KiB
C#

using Microsoft.Owin;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.Provider;
namespace Owin.Security.Providers.LinkedIn
{
/// <summary>
/// Context passed when a Challenge causes a redirect to authorize endpoint in the LinkedIn middleware
/// </summary>
public class LinkedInApplyRedirectContext : BaseContext<LinkedInAuthenticationOptions>
{
/// <summary>
/// Creates a new context object.
/// </summary>
/// <param name="context">The OWIN request context</param>
/// <param name="options">The LinkedIn middleware options</param>
/// <param name="properties">The authenticaiton properties of the challenge</param>
/// <param name="redirectUri">The initial redirect URI</param>
public LinkedInApplyRedirectContext(IOwinContext context, LinkedInAuthenticationOptions options,
AuthenticationProperties properties, string redirectUri)
: base(context, options)
{
RedirectUri = redirectUri;
Properties = properties;
}
/// <summary>
/// Gets the URI used for the redirect operation.
/// </summary>
public string RedirectUri { get; private set; }
/// <summary>
/// Gets the authentication properties of the challenge
/// </summary>
public AuthenticationProperties Properties { get; private set; }
}
}