Skip to content

Commit

Permalink
Swap error and error description
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdecock committed Apr 4, 2024
1 parent 20e77ec commit e948bbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OidcClient/AuthorizeClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ public async Task<AuthorizeState> CreateAuthorizeStateAsync(Parameters frontChan
{
_logger.LogError("Failed to push authorization parameters");

state.Error = "Failed to push authorization parameters";
state.ErrorDescription = parResponse.Error;
state.Error = parResponse.Error;
state.ErrorDescription = "Failed to push authorization parameters";
return state;
}
state.StartUrl = CreateAuthorizeUrl(parResponse.RequestUri, _options.ClientId);
Expand Down

0 comments on commit e948bbe

Please sign in to comment.