Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jul 2, 2019. It is now read-only.

Latest commit

 

History

History
History
executable file
·
29 lines (20 loc) · 855 Bytes

File metadata and controls

executable file
·
29 lines (20 loc) · 855 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python3
import argparse
from fedoidc import read_jwks_file
from fedoidc.bundle import JWKSBundle
from fedoidc.operator import Operator
parser = argparse.ArgumentParser()
parser.add_argument('-j', dest='jwks',
help="A JWKS file that contains the federation operators public keys")
parser.add_argument('-r', dest='req', help="The message")
parser.add_argument('-f', dest='fo', help='The identifier of the Federation')
parser.add_argument('-l', dest='flatten', action='store_true',
help="Flatten the compounded metadata statement")
args = parser.parse_args()
kj = read_jwks_file(args.jwks)
_bundle = JWKSBundle('')
_bundle[args.fo] = kj
op = Operator(jwks_bundle=_bundle)
_fo, _req = open(args.req).read().rsplit(':', 1)
res = op.unpack_metadata_statement(jwt_ms=_req.strip())
print(res.result)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.