pypomes-iam 0.3.6__py3-none-any.whl → 0.3.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pypomes-iam might be problematic. Click here for more details.

@@ -21,9 +21,9 @@ def service_login() -> Response:
21
21
  """
22
22
  Entry point for the IAM server's login service.
23
23
 
24
- Return the URL for the IAM server's authentication page, with the appropriate parameters.
24
+ Return the URL for invoking the IAM server's authentication page, with the appropriate parameters.
25
25
 
26
- :return: the response from the operation
26
+ :return: *Response* with the URL for invoking the IAM server's authentication page, or *BAD REQUEST* if error
27
27
  """
28
28
  # declare the return variable
29
29
  result: Response | None = None
@@ -70,7 +70,7 @@ def service_logout() -> Response:
70
70
 
71
71
  Remove all data associating the user from the *IAM* server's registry.
72
72
 
73
- :return: response *OK*, or response *BAD REQUEST* if error
73
+ :return: *Response NO CONTENT*, or *BAD REQUEST* if error
74
74
  """
75
75
  # declare the return variable
76
76
  result: Response | None
@@ -97,7 +97,7 @@ def service_logout() -> Response:
97
97
  result = Response("; ".join(errors))
98
98
  result.status_code = 400
99
99
  else:
100
- result = Response(status=200)
100
+ result = Response(status=204)
101
101
 
102
102
  # log the response
103
103
  if logger:
@@ -118,7 +118,13 @@ def service_callback() -> Response:
118
118
  *IAM* server's login page, forwarding the data received. In a typical OAuth2 flow faction,
119
119
  this data is then used to effectively obtain the token from the *IAM* server.
120
120
 
121
- :return: the *Response* containing the reference user identification and the token, or *BAD REQUEST*
121
+ On success, the returned *Response* will contain the following JSON:
122
+ {
123
+ "user-id": <reference-user-identification>,
124
+ "token": <token>
125
+ }
126
+
127
+ :return: *Response* containing the reference user identification and the token, or *BAD REQUEST*
122
128
  """
123
129
  # retrieve the operations's logger
124
130
  logger: Logger = _get_logger()
@@ -147,7 +153,7 @@ def service_callback() -> Response:
147
153
  logger.error(msg=json.dumps(obj=result))
148
154
  else:
149
155
  result = jsonify({"user-id": token_data[0],
150
- "access-token": token_data[1]})
156
+ "token": token_data[1]})
151
157
  # log the response
152
158
  if logger:
153
159
  logger.debug(msg=f"Response {result}")
@@ -163,7 +169,13 @@ def service_token() -> Response:
163
169
  """
164
170
  Entry point for retrieving a token from the *IAM* server.
165
171
 
166
- :return: the *Response* containing the user reference identification and the token, or *BAD REQUEST*
172
+ On success, the returned *Response* will contain the following JSON:
173
+ {
174
+ "user-id": <reference-user-identification>,
175
+ "token": <token>
176
+ }
177
+
178
+ :return: *Response* containing the user reference identification and the token, or *BAD REQUEST*
167
179
  """
168
180
  # retrieve the operations's logger
169
181
  logger: Logger = _get_logger()
@@ -224,7 +236,7 @@ def service_exchange() -> Response:
224
236
  If the exchange is successful, the token data is stored in the *IAM* server's registry, and returned.
225
237
  Otherwise, *errors* will contain the appropriate error message.
226
238
 
227
- The typical *Response* returned contains the following attributes:
239
+ On success, the typical *Response* returned will contain the following attributes:
228
240
  {
229
241
  "token_type": "Bearer",
230
242
  "access_token": <str>,
@@ -233,7 +245,7 @@ def service_exchange() -> Response:
233
245
  "refesh_expires_in": <number-of-seconds>
234
246
  }
235
247
 
236
- :return: the *Response* containing the token data, or *UNAUTHORIZED*
248
+ :return: *Response* containing the token data, or *BAD REQUEST*
237
249
  """
238
250
  # retrieve the operations's logger
239
251
  logger: Logger = _get_logger()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pypomes_iam
3
- Version: 0.3.6
3
+ Version: 0.3.7
4
4
  Summary: A collection of Python pomes, penyeach (IAM modules)
5
5
  Project-URL: Homepage, https://github.com/TheWiseCoder/PyPomes-IAM
6
6
  Project-URL: Bug Tracker, https://github.com/TheWiseCoder/PyPomes-IAM/issues
@@ -1,12 +1,12 @@
1
1
  pypomes_iam/__init__.py,sha256=H7rUCaUEJBLNJv2rtdmBxwcAB28OItdEPenpv_UEOVw,965
2
2
  pypomes_iam/iam_common.py,sha256=f74FUDcnMM2cgzJg-AF17GwCKwbfoezS8LppwxYwPys,10049
3
3
  pypomes_iam/iam_pomes.py,sha256=gvDpgff6arB4_Y8AAf6QH2CEWRmdy-kcnQLyD0hx4Y4,23966
4
- pypomes_iam/iam_services.py,sha256=Ae_hLz5luRjK-l_rhBcuuY03Ov7n7o67UYgBb5rbBys,10002
4
+ pypomes_iam/iam_services.py,sha256=xs0y0FUBTDiVu_B_kP900Kp1D77wyphUBxb_-QlD07Y,10445
5
5
  pypomes_iam/jusbr_pomes.py,sha256=0qbjJ6EGnlx17K-4Lqh5XkfH58y0joVZiD6HykbwpoE,5823
6
6
  pypomes_iam/keycloak_pomes.py,sha256=5ZfpncofF20C1IB5ndO31vfrvfa8Ffy7FJxkGoKKoQQ,6836
7
7
  pypomes_iam/provider_pomes.py,sha256=3Rui68hmj8zwY0tnw4aWurz-yQ-niacJFQpi6nWzh-M,6355
8
8
  pypomes_iam/token_pomes.py,sha256=1g6PMNNMbmdwLrsvSXvpO8-zdRhso1IFnwAyndNmV4Q,5332
9
- pypomes_iam-0.3.6.dist-info/METADATA,sha256=q53TFkBnU4mUAZgsJ_r_730kASXLiIyCwW_5mkFz8TU,694
10
- pypomes_iam-0.3.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
- pypomes_iam-0.3.6.dist-info/licenses/LICENSE,sha256=YvUELgV8qvXlaYsy9hXG5EW3Bmsrkw-OJmmILZnonAc,1086
12
- pypomes_iam-0.3.6.dist-info/RECORD,,
9
+ pypomes_iam-0.3.7.dist-info/METADATA,sha256=A97OOR7LyuCK84uBRzkQgwbfyqW6aBDxwaImnHM6iAk,694
10
+ pypomes_iam-0.3.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
+ pypomes_iam-0.3.7.dist-info/licenses/LICENSE,sha256=YvUELgV8qvXlaYsy9hXG5EW3Bmsrkw-OJmmILZnonAc,1086
12
+ pypomes_iam-0.3.7.dist-info/RECORD,,