fixes
This commit is contained in:
parent
20cdaefa1c
commit
ddf5f12409
@ -285,10 +285,10 @@ async def _client_token():
|
|||||||
},
|
},
|
||||||
"service_instance_public_key_configuration": {
|
"service_instance_public_key_configuration": {
|
||||||
"service_instance_public_key_me": {
|
"service_instance_public_key_me": {
|
||||||
"mod": hex(public_key.public_key().n)[2:],
|
"mod": hex(public_key.raw().public_numbers().n)[2:],
|
||||||
"exp": int(public_key.public_key().e),
|
"exp": int(public_key.raw().public_numbers().e),
|
||||||
},
|
},
|
||||||
"service_instance_public_key_pem": public_key.export_key().decode('utf-8'),
|
"service_instance_public_key_pem": public_key.pem().decode('utf-8'),
|
||||||
"key_retention_mode": "LATEST_ONLY"
|
"key_retention_mode": "LATEST_ONLY"
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,6 @@ class Instance(Base):
|
|||||||
return PublicKey(self.public_key)
|
return PublicKey(self.public_key)
|
||||||
|
|
||||||
def get_jwt_encode_key(self) -> "jose.jkw":
|
def get_jwt_encode_key(self) -> "jose.jkw":
|
||||||
|
|
||||||
return jwk.construct(self.__get_private_key().pem().decode('utf-8'), algorithm=ALGORITHMS.RS256)
|
return jwk.construct(self.__get_private_key().pem().decode('utf-8'), algorithm=ALGORITHMS.RS256)
|
||||||
|
|
||||||
def get_jwt_decode_key(self) -> "jose.jwt":
|
def get_jwt_decode_key(self) -> "jose.jwt":
|
||||||
|
Loading…
Reference in New Issue
Block a user