ramosbugs / openidconnect-rs

OpenID Connect Library for Rust
MIT License
427 stars 103 forks source link

Issue deserializing Azure token #106

Closed espensv closed 1 year ago

espensv commented 1 year ago

Trying to use this crate (2.5.1) to authenticate against Azure AD.

Parse(Error { path: Path { segments: [Map { key: "expires_in" }] }, original: Error("invalid type: string \"3599\", expected u64", line: 1, column: 42) }

As I understand it the crate expects the "expires_in" field to be a u64, but is a string in the Azure response.

espensv commented 1 year ago

Nevermind, this is an issue with MS not adhering to the standard. https://github.com/ramosbugs/oauth2-rs/issues/191