|
@ -227,7 +227,10 @@ class OAuth2Service extends SiteService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const response = await this.issueTokens(ac); |
|
|
const response = await this.issueTokens(ac); |
|
|
this.log.info('OAuth2 grant exchanged for token', { clientID: client._id }); |
|
|
this.log.info('OAuth2 grant exchanged for token', { |
|
|
|
|
|
clientID: client._id, |
|
|
|
|
|
params: response.params, |
|
|
|
|
|
}); |
|
|
return done(null, response.accessToken, response.refreshToken, response.params); |
|
|
return done(null, response.accessToken, response.refreshToken, response.params); |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
this.log.error('failed to process OAuth2 exchange', { error }); |
|
|
this.log.error('failed to process OAuth2 exchange', { error }); |
|
|