Ejemplo n.º 1
0
Archivo: az.py Proyecto: hdknr/connect
        def run(self, params, **options):
            authority  = Authority.objects.get(id=params.id[0])
            jku = authority.auth_metadata_object.jwks_uri or \
                AuthorityKeyResource.url(
                    authority.identifier, 
                    tenant=authority.tenant, id=params.jkuid)

            jwkset = JwkSet(
                keys=[Jwk.generate(kty=params.kty[0])])
            jwkset.save(authority, jku)
Ejemplo n.º 2
0
 def default_jwks_uri(self, jkuid=None):
     return AuthorityKeyResource.url(
         self.identifier, tenant=self.tenant, id=jkuid)