Exemple #1
0
##   On the OP
#### ======================================================================

op_keyjar = KeyJar()
op_keyjar.add_kb('https://fo.example.com/', KeyBundle(fo_jwks['keys']))

# -----------------------------------------------------------------------------
# Unpack software_statements
# -----------------------------------------------------------------------------

msgs = []

# Only one software statement
sost = rr['software_statements'][0]

_sost = unpack_software_statement(sost, '', op_keyjar)
fo_id = _sost['iss']

# ------------------------------
# get the long lived RP key (A)
# ------------------------------
A_keyjar = KeyJar()
A_keyjar.add_kb('', KeyBundle(_sost['signing_key']))

print(70 * "-")
print('Received primary key')
print(70 * "-")
print_lines(
    json.dumps(_sost['signing_key'],
               sort_keys=True,
               indent=2,