File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tee-worker/omni-executor/heima/authentication/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- use crate :: constants:: { CLIENT_ID_HEIMA , CLIENT_ID_PUMPX } ;
1
+ use crate :: constants:: { CLIENT_ID_HEIMA , CLIENT_ID_PUMPX , CLIENT_ID_WILDMETA } ;
2
2
use executor_crypto:: jwt;
3
3
use parity_scale_codec:: { Decode , Encode } ;
4
4
use rsa:: {
@@ -72,7 +72,7 @@ impl AuthTokenValidator<AuthTokenClaims> for String {
72
72
let claims = jwt:: decode :: < AuthTokenClaims > (
73
73
self ,
74
74
public_key. as_bytes ( ) ,
75
- Some ( & [ CLIENT_ID_HEIMA , CLIENT_ID_PUMPX ] ) ,
75
+ Some ( & [ CLIENT_ID_HEIMA , CLIENT_ID_PUMPX , CLIENT_ID_WILDMETA ] ) ,
76
76
validation. skip_exp_check ,
77
77
)
78
78
. map_err ( |e| Error :: JwtError ( e. kind ( ) . clone ( ) ) ) ?;
@@ -96,7 +96,7 @@ impl AuthTokenValidator<AuthTokenClaims> for &str {
96
96
let claims = jwt:: decode :: < AuthTokenClaims > (
97
97
self ,
98
98
public_key. as_bytes ( ) ,
99
- Some ( & [ CLIENT_ID_HEIMA , CLIENT_ID_PUMPX ] ) ,
99
+ Some ( & [ CLIENT_ID_HEIMA , CLIENT_ID_PUMPX , CLIENT_ID_WILDMETA ] ) ,
100
100
validation. skip_exp_check ,
101
101
)
102
102
. map_err ( |e| Error :: JwtError ( e. kind ( ) . clone ( ) ) ) ?;
You can’t perform that action at this time.
0 commit comments