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
##### 3. copy a config template (e.g. `aad.config.json`) from the repo and in to your project root dir, and fill in the details
70
70
71
-
### Quickstart
71
+
### Quickstart (Flask)
72
72
73
73
74
74
don't forget to import the required modules into your application as necessary:
@@ -94,21 +94,23 @@ def my_protected_route():
94
94
95
95
## Demo
96
96
97
-
see: https://github.com/azure-samples/ms-identity-b2c-python-flask-webapp-authentication/tree/idgsam (@ idgsam branch) for a demo
97
+
see: https://github.com/azure-samples/ms-identity-python-flask-tutorial or https://github.com/azure-samples/ms-identity-python-django-tutorial for a demo with any of the apps there
98
98
99
99
## Project Structure
100
100
#### __init__.py
101
101
- main common code API is here.
102
102
#### adapters.py
103
103
- FlaskContextAdapter for handling interaction between the API and flask context (e.g. session, request)
104
104
- An ABC defining the interface for writing more adapters
105
-
- Django adapter will go here.
106
105
- Should be re-organised into folders on a per-framework basis?
107
106
#### flask_blueprint
108
-
- a class that implemets all aad-specific endpoints. support for multiple instances with different prefixes if necessary
107
+
- a class that implements all aad-specific endpoints. support for multiple instances with different prefixes if necessary
109
108
- all bindings are automatic with flaskcontextadapter
110
-
#### blueprint-like functionality for django (`reusable django app`)
111
-
- not yet implemented
109
+
#### django adapter
110
+
-`django.adapter` is used to integrate with Django apps
111
+
- need to use `django.middleware` as middleware in Django apps
112
+
#### django endpoints
113
+
-`django.msal_views_and_urls.py` implements all aad-specific endpoints. support for multiple instances with different prefixes if necessary
112
114
#### context.py
113
115
- IdentityContext class that holds ID-specific info (simple class with attributes and has_changed function for write-to-session decision)
0 commit comments