コード例 #1
0
ファイル: az.py プロジェクト: 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)
コード例 #2
0
ファイル: helpers.py プロジェクト: hdknr/connect
 def default_jwks_uri(self, jkuid=None):
     return AuthorityKeyResource.url(
         self.identifier, tenant=self.tenant, id=jkuid)