1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-07 17:03:01 +03:00

Axum migration: /oauth2/introspection

This commit is contained in:
Quentin Gliech
2022-04-05 08:21:31 +02:00
parent ed49624c3a
commit 0f7484beee
7 changed files with 145 additions and 77 deletions

View File

@@ -213,10 +213,7 @@ impl JsonWebTokenParts {
Ok(decoded)
}
pub fn verify<S: VerifyingKeystore>(&self, header: &JwtHeader, store: &S) -> S::Future
where
S::Error: std::error::Error + Send + Sync + 'static,
{
pub fn verify<S: VerifyingKeystore>(&self, header: &JwtHeader, store: &S) -> S::Future {
store.verify(header, self.payload.as_bytes(), &self.signature)
}