File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
app/domain/authentication/authn_jwt/v2/data_objects Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,24 @@ module Authentication
4
4
module AuthnJwt
5
5
module V2
6
6
module DataObjects
7
+ class AuthenticatorContract < Dry ::Validation ::Contract
8
+ schema do
9
+ required ( :account ) . value ( :string )
10
+ required ( :service_id ) . value ( :string )
11
+
12
+ optional ( :jwks_uri ) . value ( :string )
13
+ optional ( :public_keys ) . value ( :string )
14
+ optional ( :ca_cert ) . value ( :string )
15
+ optional ( :token_app_property ) . value ( :string )
16
+ optional ( :identity_path ) . value ( :string )
17
+ optional ( :issuer ) . value ( :string )
18
+ optional ( :enforced_claims ) . value ( :string )
19
+ optional ( :claim_aliases ) . value ( :string )
20
+ optional ( :audience ) . value ( :string )
21
+ optional ( :token_ttl ) . value ( :string )
22
+ optional ( :provider_uri ) . value ( :string )
23
+ end
24
+ end
7
25
class Authenticator
8
26
9
27
DENYLIST = %w[ iss exp nbf iat jti aud ] . freeze
You can’t perform that action at this time.
0 commit comments