Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Fix error fail #60

Merged
merged 2 commits into from
May 14, 2024
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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "msal"
description = "Microsoft Authentication Library for Rust"
version = "0.1.23"
version = "0.1.24"
edition = "2021"
authors = [
"David Mulder <dmulder@suse.com>"
Expand Down
10 changes: 2 additions & 8 deletions src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1533,14 +1533,8 @@ impl PublicClientApplication {
let (_, code) =
url.query_pairs()
.find(|(k, _)| k == "code")
.ok_or(MsalError::RequestFailed(
url.query_pairs()
.find(|(k, _)| k == "error_description")
.ok_or(MsalError::InvalidParse(
"Authorization code missing from redirect".to_string(),
))?
.1
.to_string(),
.ok_or(MsalError::InvalidParse(
"Authorization code missing from redirect".to_string(),
))?;
Ok(code.to_string())
} else {
Expand Down