You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/message/intro.rst
+16-13Lines changed: 16 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,8 @@ Introduction to message
5
5
***********************
6
6
7
7
The OpenID Connect and OAuth2 standards both defines lots of messages.
8
-
Requests that are sent from clients to servers and responses from servers
9
-
to clients.
8
+
Requests that are sent from clients to servers and responses returned from
9
+
servers to clients.
10
10
11
11
For each of these messages a number of parameters (claims) are listed, some
12
12
of them required and some optional. Each parameter are also assigned a data type.
@@ -23,6 +23,7 @@ Using this class you should be able to:
23
23
- verify that a message's parameters are correct, that all that are marked as required are present and all (required and optional) are of the right type
24
24
- serialize the message into the correct on-the-wire representation
25
25
- deserialize a received message from the on-the-wire representation into a :py:class:`idpyoidc.message.Message` instance.
26
+
- gracefully handle extra claims.
26
27
27
28
I will try to walk you through these steps below using example from RFC6749 (section
28
29
4.1 and 4.2).
@@ -38,7 +39,7 @@ Entity sending a message
38
39
------------------------
39
40
40
41
Going from a set of attributes with values how would you go about creating an
41
-
authorization request ? You would do something like this::
42
+
authorization request ? You could do something like this::
42
43
43
44
from idpyoidc.message.oauth2 import AuthorizationRequest
44
45
@@ -90,8 +91,8 @@ The pattern is:
90
91
91
92
Now, I have given examples on how a client would construct a request but of course
92
93
there is not difference between this and a server constructing a response.
93
-
The set of parameters is different and the message sub class to be used is
94
-
different but the process is the same.
94
+
The set of parameters might differ and the message sub class to be used is
95
+
definitely different but the process is the same.
95
96
96
97
Entity receiving a message
97
98
--------------------------
@@ -110,7 +111,7 @@ On the client it would get hold of the query part and then go from there::
110
111
111
112
from idpyoidc.message.oauth2 import AuthorizationResponse
0 commit comments