Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 15be550

Browse files
committed
Added WebFinger message class
1 parent 355da79 commit 15be550

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/oidcmsg/oidc/__init__.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,14 +1061,22 @@ class JRD(ResponseMessage):
10611061
"""
10621062
JSON Resource Descriptor https://tools.ietf.org/html/rfc7033#section-4.4
10631063
"""
1064-
claim = {
1064+
c_param = {
10651065
"subject": SINGLE_OPTIONAL_STRING,
10661066
"aliases": OPTIONAL_LIST_OF_STRINGS,
10671067
"properties": SINGLE_OPTIONAL_DICT,
10681068
"links": REQUIRED_LINKS
10691069
}
10701070

10711071

1072+
class WebFingerRequest(Message):
1073+
c_param = {
1074+
"resource": SINGLE_REQUIRED_STRING,
1075+
"rel": SINGLE_REQUIRED_STRING
1076+
}
1077+
c_default = {"rel": "http://openid.net/specs/connect/1.0/issuer"}
1078+
1079+
10721080
class ResourceRequest(Message):
10731081
c_param = {"access_token": SINGLE_OPTIONAL_STRING}
10741082

0 commit comments

Comments
 (0)