my-cloud-devops-consulting 1.1.202507211638__py3-none-any.whl → 1.1.202507211749__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.
app.py CHANGED
@@ -13,8 +13,6 @@ from werkzeug.middleware.proxy_fix import ProxyFix
13
13
 
14
14
  app = Flask(__name__)
15
15
  app.secret_key = SECRET_KEY # Secure your secret key with an environment variable
16
- # 🔐 Let Flask correctly detect HTTPS and domain from proxy headers
17
- app.wsgi_app = ProxyFix(app.wsgi_app, x_proto=1, x_host=1)
18
16
  ### app.secret_key = SECRET_KEY isn’t an import at all—it’s just an assignment
19
17
  login_manager = LoginManager()
20
18
 
@@ -304,10 +302,24 @@ def authorize():
304
302
 
305
303
 
306
304
  # Configure a logout route that erases user session data.
305
+ # @app.route('/logout/cognito')
306
+ # def logout_cognito(): # ✅ Renamed to avoid conflict
307
+ # session.pop('user', None)
308
+ # return redirect(url_for('home')) # 🔁 Also change to 'home' if 'index' doesn't exist
309
+
307
310
  @app.route('/logout/cognito')
308
- def logout_cognito(): # ✅ Renamed to avoid conflict
311
+ def logout_cognito():
309
312
  session.pop('user', None)
310
- return redirect(url_for('home')) # 🔁 Also change to 'home' if 'index' doesn't exist
313
+
314
+ cognito_domain = 'https://us-east-1tzvykdvvg.auth.us-east-1.amazoncognito.com'
315
+ client_id = '1lc7qso1g3lr9kqbr0nb0jktbs' # Make sure this matches your App Client ID
316
+ logout_redirect_uri = url_for('home', _external=True)
317
+
318
+ return redirect(
319
+ f"{cognito_domain}/logout?client_id={client_id}&logout_uri={logout_redirect_uri}"
320
+ )
321
+
322
+
311
323
 
312
324
 
313
325
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: my-cloud-devops-consulting
3
- Version: 1.1.202507211638
3
+ Version: 1.1.202507211749
4
4
  Summary: This is my consulting website for Cloud & DevOps services.
5
5
  Home-page: https://github.com/Betrand1999/project-root
6
6
  Author: Betrand Mutagha
@@ -0,0 +1,5 @@
1
+ app.py,sha256=JhYl1My8hHBBqNLDarRAyNdJ6iHjya0b8grK4pZkU9U,11290
2
+ my_cloud_devops_consulting-1.1.202507211749.dist-info/METADATA,sha256=vR3vutNXYmdUiMG7rh0ngIVFcOOWZNwx1qUFCK6hckM,785
3
+ my_cloud_devops_consulting-1.1.202507211749.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
+ my_cloud_devops_consulting-1.1.202507211749.dist-info/top_level.txt,sha256=io9g7LCbfmTG1SFKgEOGXmCFB9uMP2H5lerm0HiHWQE,4
5
+ my_cloud_devops_consulting-1.1.202507211749.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- app.py,sha256=9mSTutIFcCf_GbVEJM7iLQ5BdNG5crJ3tMnZwF8GFJI,10976
2
- my_cloud_devops_consulting-1.1.202507211638.dist-info/METADATA,sha256=ccnwcFrIraWGjSNh7i-iubRB-A6JNTdnNq0GrLdQyow,785
3
- my_cloud_devops_consulting-1.1.202507211638.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
- my_cloud_devops_consulting-1.1.202507211638.dist-info/top_level.txt,sha256=io9g7LCbfmTG1SFKgEOGXmCFB9uMP2H5lerm0HiHWQE,4
5
- my_cloud_devops_consulting-1.1.202507211638.dist-info/RECORD,,