// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using Microsoft.AspNet.Http; using Microsoft.AspNet.Security.OpenIdConnect; using Microsoft.IdentityModel.Protocols; using System.Diagnostics.CodeAnalysis; using System.IdentityModel.Tokens; namespace Microsoft.AspNet.Security.Notifications { /// /// This Notification can be used to be informed when an 'AuthorizationCode' is received over the OpenIdConnect protocol. /// public class AuthorizationCodeReceivedNotification : BaseNotification { /// /// Creates a /// public AuthorizationCodeReceivedNotification(HttpContext context, OpenIdConnectAuthenticationOptions options) : base(context, options) { } /// /// Gets or sets the 'code'. /// public string Code { get; set; } /// /// Gets or sets the that was received in the id_token + code OpenIdConnectRequest. /// public JwtSecurityToken JwtSecurityToken { get; set; } /// /// Gets or sets the . /// public OpenIdConnectMessage ProtocolMessage { get; set; } /// /// Gets or sets the 'redirect_uri'. /// /// This is the redirect_uri that was sent in the id_token + code OpenIdConnectRequest. [SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings", Justification = "user controlled, not necessarily a URI")] public string RedirectUri { get; set; } } }