pypomes-iam 0.3.2__tar.gz → 0.3.4__tar.gz
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.
- {pypomes_iam-0.3.2 → pypomes_iam-0.3.4}/PKG-INFO +1 -1
- {pypomes_iam-0.3.2 → pypomes_iam-0.3.4}/pyproject.toml +1 -1
- {pypomes_iam-0.3.2 → pypomes_iam-0.3.4}/src/pypomes_iam/__init__.py +6 -2
- {pypomes_iam-0.3.2 → pypomes_iam-0.3.4}/src/pypomes_iam/iam_pomes.py +2 -2
- {pypomes_iam-0.3.2 → pypomes_iam-0.3.4}/src/pypomes_iam/iam_services.py +6 -6
- {pypomes_iam-0.3.2 → pypomes_iam-0.3.4}/.gitignore +0 -0
- {pypomes_iam-0.3.2 → pypomes_iam-0.3.4}/LICENSE +0 -0
- {pypomes_iam-0.3.2 → pypomes_iam-0.3.4}/README.md +0 -0
- {pypomes_iam-0.3.2 → pypomes_iam-0.3.4}/src/pypomes_iam/iam_common.py +0 -0
- {pypomes_iam-0.3.2 → pypomes_iam-0.3.4}/src/pypomes_iam/jusbr_pomes.py +0 -0
- {pypomes_iam-0.3.2 → pypomes_iam-0.3.4}/src/pypomes_iam/keycloak_pomes.py +0 -0
- {pypomes_iam-0.3.2 → pypomes_iam-0.3.4}/src/pypomes_iam/provider_pomes.py +0 -0
- {pypomes_iam-0.3.2 → pypomes_iam-0.3.4}/src/pypomes_iam/token_pomes.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pypomes_iam
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
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,5 +1,7 @@
|
|
|
1
1
|
from .iam_pomes import (
|
|
2
|
-
|
|
2
|
+
IamServer, register_logger,
|
|
3
|
+
login_callback, token_exchange,
|
|
4
|
+
user_login, user_logout, user_token
|
|
3
5
|
)
|
|
4
6
|
from .jusbr_pomes import (
|
|
5
7
|
jusbr_setup, jusbr_get_token
|
|
@@ -16,7 +18,9 @@ from .token_pomes import (
|
|
|
16
18
|
|
|
17
19
|
__all__ = [
|
|
18
20
|
# iam_pomes
|
|
19
|
-
"
|
|
21
|
+
"IamServer", "register_logger",
|
|
22
|
+
"login_callback", "token_exchange",
|
|
23
|
+
"user_login", "user_logout", "user_token",
|
|
20
24
|
# jusbr_pomes
|
|
21
25
|
"jusbr_setup", "jusbr_get_token",
|
|
22
26
|
# keycloak_pomes
|
|
@@ -199,7 +199,7 @@ def login_callback(iam_server: IamServer,
|
|
|
199
199
|
:param args: the arguments passed when requesting the service
|
|
200
200
|
:param errors: incidental errors
|
|
201
201
|
:param logger: optional logger
|
|
202
|
-
:return: a tuple
|
|
202
|
+
:return: a tuple containing the reference user identification and the token obtained, or *None* if error
|
|
203
203
|
"""
|
|
204
204
|
from .token_pomes import token_validate
|
|
205
205
|
|
|
@@ -299,7 +299,7 @@ def token_exchange(iam_server: IamServer,
|
|
|
299
299
|
token: str = args.get("token")
|
|
300
300
|
|
|
301
301
|
if user_id and token:
|
|
302
|
-
# HAZARD: only 'IAM_KEYCLOAK' supported
|
|
302
|
+
# HAZARD: only 'IAM_KEYCLOAK' is currently supported
|
|
303
303
|
registry: dict[str, Any] = _get_iam_registry(iam_server=iam_server,
|
|
304
304
|
errors=errors,
|
|
305
305
|
logger=logger)
|
|
@@ -7,9 +7,9 @@ from .iam_common import IamServer, _get_logger, _get_iam_server
|
|
|
7
7
|
from .iam_pomes import user_login, user_logout, user_token, token_exchange, login_callback
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
# @flask_app.route(rule=<login_endpoint>, #
|
|
10
|
+
# @flask_app.route(rule=<login_endpoint>, # JUSBR_ENDPOINT_LOGIN
|
|
11
11
|
# methods=["GET"])
|
|
12
|
-
# @flask_app.route(rule=<login_endpoint>, #
|
|
12
|
+
# @flask_app.route(rule=<login_endpoint>, # KEYCLOAK_ENDPOINT_LOGIN
|
|
13
13
|
# methods=["GET"])
|
|
14
14
|
def service_login() -> Response:
|
|
15
15
|
"""
|
|
@@ -53,9 +53,9 @@ def service_login() -> Response:
|
|
|
53
53
|
return result
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
# @flask_app.route(rule=<logout_endpoint>, #
|
|
56
|
+
# @flask_app.route(rule=<logout_endpoint>, # JUSBR_ENDPOINT_LOGOUT
|
|
57
57
|
# methods=["GET"])
|
|
58
|
-
# @flask_app.route(rule=<login_endpoint>,
|
|
58
|
+
# @flask_app.route(rule=<login_endpoint>, # KEYCLOAK_ENDPOINT_LOGOUT
|
|
59
59
|
# methods=["GET"])
|
|
60
60
|
def service_logout() -> Response:
|
|
61
61
|
"""
|
|
@@ -98,9 +98,9 @@ def service_logout() -> Response:
|
|
|
98
98
|
return result
|
|
99
99
|
|
|
100
100
|
|
|
101
|
-
# @flask_app.route(rule=<callback_endpoint>, #
|
|
101
|
+
# @flask_app.route(rule=<callback_endpoint>, # JUSBR_ENDPOINT_CALLBACK
|
|
102
102
|
# methods=["GET", "POST"])
|
|
103
|
-
# @flask_app.route(rule=<callback_endpoint>, #
|
|
103
|
+
# @flask_app.route(rule=<callback_endpoint>, # KEYCLOAK_ENDPOINT_CALLBACK
|
|
104
104
|
# methods=["POST"])
|
|
105
105
|
def service_callback() -> Response:
|
|
106
106
|
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|