This repository was archived by the owner on Dec 13, 2018. It is now read-only.
File tree 4 files changed +7
-6
lines changed
samples/OpenIdConnect.AzureAdSample
src/Microsoft.AspNetCore.Authentication.OpenIdConnect
test/Microsoft.AspNetCore.Authentication.Test/OpenIdConnect 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public void ConfigureServices(IServiceCollection services)
58
58
o . ClientSecret = ClientSecret ; // for code flow
59
59
o . Authority = Authority ;
60
60
o . ResponseType = OpenIdConnectResponseType . CodeIdToken ;
61
- o . PostLogoutRedirectUri = "/signed-out" ;
61
+ o . SignedOutRedirectUri = "/signed-out" ;
62
62
// GetClaimsFromUserInfoEndpoint = true,
63
63
o . Events = new OpenIdConnectEvents ( )
64
64
{
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ protected override async Task HandleSignOutAsync(AuthenticationProperties proper
182
182
// Get the post redirect URI.
183
183
if ( string . IsNullOrEmpty ( properties . RedirectUri ) )
184
184
{
185
- properties . RedirectUri = BuildRedirectUriIfRelative ( Options . PostLogoutRedirectUri ) ;
185
+ properties . RedirectUri = BuildRedirectUriIfRelative ( Options . SignedOutRedirectUri ) ;
186
186
if ( string . IsNullOrWhiteSpace ( properties . RedirectUri ) )
187
187
{
188
188
properties . RedirectUri = CurrentUri ;
Original file line number Diff line number Diff line change @@ -167,15 +167,16 @@ public override void Validate()
167
167
168
168
/// <summary>
169
169
/// The request path within the application's base path where the user agent will be returned after sign out from the identity provider.
170
+ /// See post_logout_redirect_uri from http://openid.net/specs/openid-connect-session-1_0.html#RedirectionAfterLogout.
170
171
/// </summary>
171
172
public PathString SignedOutCallbackPath { get ; set ; }
172
173
173
174
/// <summary>
174
- /// The uri where the user agent will be returned to after application is signed out from the identity provider.
175
+ /// The uri where the user agent will be redirected to after application is signed out from the identity provider.
175
176
/// The redirect will happen after the SignedOutCallbackPath is invoked.
176
177
/// </summary>
177
178
/// <remarks>This URI can be out of the application's domain. By default it points to the root.</remarks>
178
- public string PostLogoutRedirectUri { get ; set ; } = "/" ;
179
+ public string SignedOutRedirectUri { get ; set ; } = "/" ;
179
180
180
181
/// <summary>
181
182
/// Gets or sets if a metadata refresh should be attempted after a SecurityTokenSignatureKeyNotFoundException. This allows for automatic
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ public async Task SignOutWithCustomRedirectUri()
119
119
o . Configuration = configuration ;
120
120
o . StateDataFormat = stateFormat ;
121
121
o . SignedOutCallbackPath = "/thelogout" ;
122
- o . PostLogoutRedirectUri = "https://example.com/postlogout" ;
122
+ o . SignedOutRedirectUri = "https://example.com/postlogout" ;
123
123
} ) ;
124
124
125
125
var transaction = await server . SendAsync ( DefaultHost + TestServerBuilder . Signout ) ;
@@ -150,7 +150,7 @@ public async Task SignOutWith_Specific_RedirectUri_From_Authentication_Properite
150
150
o . StateDataFormat = stateFormat ;
151
151
o . ClientId = "Test Id" ;
152
152
o . Configuration = configuration ;
153
- o . PostLogoutRedirectUri = "https://example.com/postlogout" ;
153
+ o . SignedOutRedirectUri = "https://example.com/postlogout" ;
154
154
} ) ;
155
155
156
156
var transaction = await server . SendAsync ( "https://example.com/signout_with_specific_redirect_uri" ) ;
You can’t perform that action at this time.
0 commit comments