File tree 3 files changed +8
-6
lines changed
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 4
4
CLIENT_ID = <client id>
5
5
CLIENT_SECRET = <client secret>
6
6
7
- # Expects a full tenant id such as "contoso.onmicrosoft.com", or its GUID
8
- # Or leave it undefined if you are building a multi-tenant app
9
- # TENANT_ID=<tenant id>
7
+ # Expects a full authority URL such as "https://login.microsoftonline.com/TENANT_GUID"
8
+ # or "https://login.microsoftonline.com/contoso.onmicrosoft.com".
9
+ # Alternatively, leave it undefined if you are building a multi-tenant app in world-wide cloud
10
+ # AUTHORITY=<authority url>
Original file line number Diff line number Diff line change 19
19
20
20
auth = identity .web .Auth (
21
21
session = session ,
22
- authority = app .config . get ( "AUTHORITY" ) ,
22
+ authority = app .config [ "AUTHORITY" ] ,
23
23
client_id = app .config ["CLIENT_ID" ],
24
24
client_credential = app .config ["CLIENT_SECRET" ],
25
25
)
Original file line number Diff line number Diff line change 5
5
# Application's generated client secret: never check this into source control!
6
6
CLIENT_SECRET = os .getenv ("CLIENT_SECRET" )
7
7
8
- # AUTHORITY = "https://login.microsoftonline.com/common" # For multi-tenant app
9
- AUTHORITY = f"https://login.microsoftonline.com/{ os .getenv ('TENANT_ID' , 'common' )} "
8
+ # You can configure your authority via environment variable
9
+ # Defaults to a multi-tenant app in world-wide cloud
10
+ AUTHORITY = os .getenv ("AUTHORITY" , "https://login.microsoftonline.com/common" )
10
11
11
12
REDIRECT_PATH = "/getAToken" # Used for forming an absolute URL to your redirect URI.
12
13
# The absolute URL must match the redirect URI you set
You can’t perform that action at this time.
0 commit comments