Skip to content
This repository was archived by the owner on Feb 23, 2025. It is now read-only.

Support post logout redirect state parameter #193

Merged
merged 1 commit into from
Feb 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/AuthorizeClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ internal string CreateEndSessionUrl(string endpoint, LogoutRequest request)

return new RequestUrl(endpoint).CreateEndSessionUrl(
idTokenHint: request.IdTokenHint,
postLogoutRedirectUri: _options.PostLogoutRedirectUri);
postLogoutRedirectUri: _options.PostLogoutRedirectUri,
state: request.State);
}

internal Dictionary<string, string> CreateAuthorizeParameters(string state, string nonce, string codeChallenge, IDictionary<string, string> extraParameters)
Expand Down
8 changes: 8 additions & 0 deletions src/Requests/LogoutRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,13 @@ public class LogoutRequest
/// The identifier token hint.
/// </value>
public string IdTokenHint { get; set; }

/// <summary>
/// Gets or sets the state.
/// </summary>
/// <value>
/// The state value passed back to client as query string on post_logout_redirect_uri
/// </value>
public string State { get; set; }
}
}