File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 44CLIENT_ID = <client id>
55CLIENT_SECRET = <client secret>
66
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 1919
2020auth = identity .web .Auth (
2121 session = session ,
22- authority = app .config . get ( "AUTHORITY" ) ,
22+ authority = app .config [ "AUTHORITY" ] ,
2323 client_id = app .config ["CLIENT_ID" ],
2424 client_credential = app .config ["CLIENT_SECRET" ],
2525)
Original file line number Diff line number Diff line change 55# Application's generated client secret: never check this into source control!
66CLIENT_SECRET = os .getenv ("CLIENT_SECRET" )
77
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" )
1011
1112REDIRECT_PATH = "/getAToken" # Used for forming an absolute URL to your redirect URI.
1213# The absolute URL must match the redirect URI you set
You can’t perform that action at this time.
0 commit comments