Skip to content

Commit

Permalink
fix: fix bug for id token extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
junkurihara committed Dec 6, 2023
1 parent 1d4c4b1 commit 24b1dbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxy-lib/src/auth/auth_main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::{
log::*,
};
use async_trait::async_trait;
use auth_client::{AuthenticationConfig, TokenClient, TokenHttpClient};
use auth_client::{token::token_fields::Field, AuthenticationConfig, TokenClient, TokenHttpClient};
use serde::{de::DeserializeOwned, Serialize};
use std::sync::Arc;
use tokio::sync::RwLock;
Expand Down Expand Up @@ -89,6 +89,6 @@ impl Authenticator {
/// Get id token
pub async fn id_token(&self) -> Result<String, DapError> {
let token = self.inner.token().await?;
Ok(token.id)
Ok(token.id.as_str().to_owned())
}
}

0 comments on commit 24b1dbf

Please sign in to comment.