本文整理汇总了Python中oic.oic.message.RegistrationRequest.update方法的典型用法代码示例。如果您正苦于以下问题:Python RegistrationRequest.update方法的具体用法?Python RegistrationRequest.update怎么用?Python RegistrationRequest.update使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类oic.oic.message.RegistrationRequest
的用法示例。
在下文中一共展示了RegistrationRequest.update方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: print
# 需要导入模块: from oic.oic.message import RegistrationRequest [as 别名]
# 或者: from oic.oic.message.RegistrationRequest import update [as 别名]
jwks_uri_signed='https://example.com/rp1/jwks.jws'
)
print(70 * "-")
print('Client Registration request')
print(70 * "-")
print_lines(json.dumps(rreq.to_dict(), sort_keys=True, indent=2,
separators=(',', ': ')))
# -----------------------------------------------------------------------------
# Developer signs Registration Request once per federation
# -----------------------------------------------------------------------------
# adds the developers software statement
rreq.update({
"software_statements": [dev_swamid_sost],
})
print(70 * "-")
print('Developer adds software_statement to the Client Registration request')
print(70 * "-")
print_lines(json.dumps(rreq.to_dict(), sort_keys=True, indent=2,
separators=(',', ': ')))
rp_swamid_sost = make_software_statement(dev_swamid_keyjar,
'https://dev.example.com/',
**rreq.to_dict())
print(70 * "-")
print('.. and signs it producing a JWS')