pypomes-iam 0.1.3__tar.gz → 0.1.5__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.1.3 → pypomes_iam-0.1.5}/PKG-INFO +1 -1
- {pypomes_iam-0.1.3 → pypomes_iam-0.1.5}/pyproject.toml +1 -1
- {pypomes_iam-0.1.3 → pypomes_iam-0.1.5}/src/pypomes_iam/jusbr_pomes.py +4 -4
- {pypomes_iam-0.1.3 → pypomes_iam-0.1.5}/.gitignore +0 -0
- {pypomes_iam-0.1.3 → pypomes_iam-0.1.5}/LICENSE +0 -0
- {pypomes_iam-0.1.3 → pypomes_iam-0.1.5}/README.md +0 -0
- {pypomes_iam-0.1.3 → pypomes_iam-0.1.5}/src/pypomes_iam/__init__.py +0 -0
- {pypomes_iam-0.1.3 → pypomes_iam-0.1.5}/src/pypomes_iam/keycloak_pomes.py +0 -0
- {pypomes_iam-0.1.3 → pypomes_iam-0.1.5}/src/pypomes_iam/provider_pomes.py +0 -0
- {pypomes_iam-0.1.3 → pypomes_iam-0.1.5}/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.1.
|
|
3
|
+
Version: 0.1.5
|
|
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
|
|
@@ -123,7 +123,7 @@ def jusbr_setup(flask_app: Flask,
|
|
|
123
123
|
flask_app.add_url_rule(rule=callback_endpoint,
|
|
124
124
|
endpoint="jusbr-callback",
|
|
125
125
|
view_func=service_callback,
|
|
126
|
-
methods=["POST"])
|
|
126
|
+
methods=["GET", "POST"])
|
|
127
127
|
|
|
128
128
|
|
|
129
129
|
# @flask_app.route(rule=<login_endpoint>, # JUSBR_LOGIN_ENDPOINT: /iam/jusbr:login
|
|
@@ -157,7 +157,7 @@ def service_login() -> Response:
|
|
|
157
157
|
user_data["cache-obj"] = safe_cache
|
|
158
158
|
auth_url: str = (f"{_jusbr_registry["auth-url"]}/protocol/openid-connect/auth?response_type=code"
|
|
159
159
|
f"&client_id={_jusbr_registry["client-id"]}"
|
|
160
|
-
f"&
|
|
160
|
+
f"&redirect_uri={_jusbr_registry["callback-url"]}"
|
|
161
161
|
f"&state={oauth_state}")
|
|
162
162
|
if user_data.get("oauth-scope"):
|
|
163
163
|
auth_url += f"&scope={user_data.get("oauth-scope")}"
|
|
@@ -192,7 +192,7 @@ def service_logout() -> Response:
|
|
|
192
192
|
|
|
193
193
|
|
|
194
194
|
# @flask_app.route(rule=<callback_endpoint>, # JUSBR_CALLBACK_ENDPOINT: /iam/jusbr:callback
|
|
195
|
-
# methods=["POST"])
|
|
195
|
+
# methods=["GET", "POST"])
|
|
196
196
|
def service_callback() -> Response:
|
|
197
197
|
"""
|
|
198
198
|
Entry point for the callback from JusBR on authentication operation.
|
|
@@ -439,7 +439,7 @@ def __post_jusbr(user_data: dict[str, Any],
|
|
|
439
439
|
For code for token exchange, *body_data* will have the attributes
|
|
440
440
|
- "grant_type": "authorization_code"
|
|
441
441
|
- "code": <16-character-random-code>
|
|
442
|
-
- "
|
|
442
|
+
- "redirect_uri": <callback-url>
|
|
443
443
|
For token refresh, *body_data* will have the attributes
|
|
444
444
|
- "grant_type": "refresh_token"
|
|
445
445
|
- "refresh_token": <current-refresh-token>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|