chore(oidc): Enable debug log statement for token responses
This commit is contained in:
parent
985ca0a3e5
commit
1b662c8674
1 changed files with 6 additions and 4 deletions
10
src/oidc.rs
10
src/oidc.rs
|
@ -120,13 +120,15 @@ impl Handler<RetrieveToken> for OidcExecutor {
|
|||
("redirect_uri", &self.redirect_uri),
|
||||
];
|
||||
|
||||
let response: TokenResponse = client.post(&self.oidc_config.token_endpoint)
|
||||
let mut response = client.post(&self.oidc_config.token_endpoint)
|
||||
.form(¶ms)
|
||||
.send()?
|
||||
.json()?;
|
||||
.send()?;
|
||||
|
||||
debug!("Received token response: {:?}", response);
|
||||
let token: TokenResponse = response.json()?;
|
||||
|
||||
let user: Userinfo = client.get(&self.oidc_config.userinfo_endpoint)
|
||||
.header(Authorization(Bearer { token: response.access_token }))
|
||||
.header(Authorization(Bearer { token: token.access_token }))
|
||||
.send()?
|
||||
.json()?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue