Skip to content

Commit

Permalink
less trait bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
kilork committed Mar 17, 2023
1 parent bcaf6fd commit 41f09f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,15 +324,15 @@ impl<C: CompactJson + Claims, P: Provider + Configurable> Client<P, C> {
/// - [Error::Json] if the response is not a valid Userinfo document
/// - [ErrorUserinfo::MissingSubject] if subject (sub) is missing
/// - [ErrorUserinfo::MismatchSubject] if the returned userinfo document and tokens subject mismatch
pub async fn request_userinfo_custom<D>(&self, token: &Token<C>) -> Result<D, Error>
pub async fn request_userinfo_custom<U>(&self, token: &Token<C>) -> Result<U, Error>
where
D: StandardClaimsSubject + serde::de::DeserializeOwned + ?Sized,
U: StandardClaimsSubject + serde::de::DeserializeOwned,
{
match self.config().userinfo_endpoint {
Some(ref url) => {
let auth_code = token.bearer.access_token.to_string();

let info: D = self
let info: U = self
.http_client
.get(url.clone())
.bearer_auth(auth_code)
Expand Down

0 comments on commit 41f09f8

Please sign in to comment.