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

WIP: better JOSE

This commit is contained in:
Quentin Gliech
2022-08-23 17:45:23 +02:00
parent 495285162b
commit ca125a14c5
16 changed files with 690 additions and 157 deletions

View File

@@ -31,8 +31,8 @@ use mas_data_model::{Client, JwksOrJwksUri, StorageBackend};
use mas_http::HttpServiceExt;
use mas_iana::oauth::OAuthClientAuthenticationMethod;
use mas_jose::{
DecodedJsonWebToken, DynamicJwksStore, Either, JsonWebKeySet, JsonWebTokenParts, JwtHeader,
SharedSecret, StaticJwksStore, VerifyingKeystore,
DecodedJsonWebToken, DynamicJwksStore, Either, JsonWebKeySet, JsonWebSignatureHeader,
JsonWebTokenParts, SharedSecret, StaticJwksStore, VerifyingKeystore,
};
use mas_storage::{
oauth2::client::{lookup_client_by_client_id, ClientFetchError},
@@ -73,7 +73,7 @@ pub enum Credentials {
ClientAssertionJwtBearer {
client_id: String,
jwt: JsonWebTokenParts,
header: Box<JwtHeader>,
header: Box<JsonWebSignatureHeader>,
claims: HashMap<String, Value>,
},
}