1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-21 23:00:50 +03:00

Implement private_key_jwks client authentication

This involves a lot of things, including:
 - better VerifyingKeystore trait
 - better errors in the JOSE crate
 - getting rid of async_trait in some JOSE traits
This commit is contained in:
Quentin Gliech
2022-02-17 15:42:44 +01:00
parent c5858e6ed5
commit 035e2d7829
25 changed files with 1008 additions and 796 deletions

View File

@@ -12,20 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
use crate::layers::{get::Get, json::Json};
use crate::layers::json::Json;
pub trait ServiceExt: Sized {
fn json<T>(self) -> Json<Self, T>;
fn get(self) -> Get<Self>;
}
impl<S> ServiceExt for S {
fn json<T>(self) -> Json<Self, T> {
Json::new(self)
}
fn get(self) -> Get<Self> {
Get::new(self)
}
}