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

Commit

Permalink
Merge pull request #60 from himmelblau-idm/dmulder/fix_error_fail
Browse files Browse the repository at this point in the history
Fix error fail
  • Loading branch information
dmulder authored May 14, 2024
2 parents 2e540af + 61a67a3 commit 3473503
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
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 <[email protected]>"
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

0 comments on commit 3473503

Please sign in to comment.