@@ -7,8 +7,6 @@ MSAL Python Documentation
7
7
:caption: Contents:
8
8
:hidden:
9
9
10
- index
11
-
12
10
..
13
11
Comment: Perhaps because of the theme, only the first level sections will show in TOC,
14
12
regardless of maxdepth setting.
@@ -26,7 +24,7 @@ MSAL Python supports some of them.
26
24
**The following diagram serves as a map. Locate your application scenario on the map. **
27
25
**If the corresponding icon is clickable, it will bring you to an MSAL Python sample for that scenario. **
28
26
29
- * Most authentication scenarios acquire tokens on behalf of signed-in users .
27
+ * Most authentication scenarios acquire tokens representing the signed-in user .
30
28
31
29
.. raw :: html
32
30
@@ -46,7 +44,7 @@ MSAL Python supports some of them.
46
44
alt =" Browserless app" title =" Browserless app" href =" https://github.com/Azure-Samples/ms-identity-python-devicecodeflow" >
47
45
</map >
48
46
49
- * There are also daemon apps. In these scenarios, applications acquire tokens on behalf of themselves with no user.
47
+ * There are also daemon apps, who acquire tokens representing themselves, not a user.
50
48
51
49
.. raw :: html
52
50
@@ -66,26 +64,24 @@ MSAL Python supports some of them.
66
64
67
65
API Reference
68
66
=============
67
+ .. note ::
68
+
69
+ Only the contents inside
70
+ `this source file <https://github.com/AzureAD/microsoft-authentication-library-for-python/blob/dev/msal/__init__.py >`_
71
+ and their documented methods (unless otherwise marked as deprecated)
72
+ are MSAL Python public API,
73
+ which are guaranteed to be backward-compatible until the next major version.
74
+
75
+ Everything else, regardless of their naming, are all internal helpers,
76
+ which could change at anytime in the future, without prior notice.
69
77
70
78
The following section is the API Reference of MSAL Python.
71
- The API Reference is like a dictionary. You ** read this API section when and only when ** :
79
+ The API Reference is like a dictionary, which is useful when:
72
80
73
81
* You already followed our sample(s) above and have your app up and running,
74
82
but want to know more on how you could tweak the authentication experience
75
83
by using other optional parameters (there are plenty of them!)
76
- * You read the MSAL Python source code and found a helper function that is useful to you,
77
- then you would want to double check whether that helper is documented below.
78
- Only documented APIs are considered part of the MSAL Python public API,
79
- which are guaranteed to be backward-compatible in MSAL Python 1.x series.
80
- Undocumented internal helpers are subject to change anytime, without prior notice.
81
-
82
- .. note ::
83
-
84
- Only APIs and their parameters documented in this section are part of public API,
85
- with guaranteed backward compatibility for the entire 1.x series.
86
-
87
- Other modules in the source code are all considered as internal helpers,
88
- which could change at anytime in the future, without prior notice.
84
+ * Some important features have their in-depth documentations in the API Reference.
89
85
90
86
MSAL proposes a clean separation between
91
87
`public client applications and confidential client applications
@@ -109,6 +105,7 @@ PublicClientApplication
109
105
.. autoclass :: msal.PublicClientApplication
110
106
:members:
111
107
108
+ .. autoattribute :: msal.PublicClientApplication.CONSOLE_WINDOW_HANDLE
112
109
.. automethod :: __init__
113
110
114
111
ConfidentialClientApplication
@@ -134,6 +131,15 @@ See `SerializableTokenCache` for example.
134
131
.. autoclass :: msal.SerializableTokenCache
135
132
:members:
136
133
134
+ Prompt
135
+ ------
136
+ .. autoclass :: msal.Prompt
137
+ :members:
138
+
139
+ .. autoattribute :: msal.Prompt.SELECT_ACCOUNT
140
+ .. autoattribute :: msal.Prompt.NONE
141
+ .. autoattribute :: msal.Prompt.CONSENT
142
+ .. autoattribute :: msal.Prompt.LOGIN
137
143
138
144
PopAuthScheme
139
145
-------------
@@ -146,6 +152,11 @@ New in MSAL Python 1.26
146
152
.. autoclass :: msal.PopAuthScheme
147
153
:members:
148
154
155
+ .. autoattribute :: msal.PopAuthScheme.HTTP_GET
156
+ .. autoattribute :: msal.PopAuthScheme.HTTP_POST
157
+ .. autoattribute :: msal.PopAuthScheme.HTTP_PUT
158
+ .. autoattribute :: msal.PopAuthScheme.HTTP_DELETE
159
+ .. autoattribute :: msal.PopAuthScheme.HTTP_PATCH
149
160
.. automethod :: __init__
150
161
151
162
0 commit comments