Dejan Lozanovic
05/04/2025, 1:17 PMsimon.vergauwen
05/05/2025, 7:12 AMAleksei Tirman [JB]
05/05/2025, 7:32 AMNonceManager
interface and pass it to the nonceManager
property of the OAuth2ServerSettings
to override the nonce generation which is used for the state:
install(Authentication) {
oauth {
// ...
providerLookup = {
OAuthServerSettings.OAuth2ServerSettings(
// ...
nonceManager = object : NonceManager {
override suspend fun newNonce(): String {
return "my-nonce"
}
override suspend fun verifyNonce(nonce: String): Boolean {
return true
}
},
// ...
)
}
// ...
}
}
Dejan Lozanovic
05/05/2025, 7:37 AM