File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,14 @@ def __init__(
23
23
@param entra_tenant_id: Tenant ID for the Entra ID
24
24
"""
25
25
redirect_uri = "urn:ietf:wg:oauth:2.0:oob" # this is the "no redirect" URL
26
- scopes = ["https://graph.microsoft.com/.default" ] # this is the default scope
27
26
token_url = (
28
27
f"https://login.microsoftonline.com/{ entra_tenant_id } /oauth2/v2.0/token"
29
28
)
30
- self . tenant_id = entra_tenant_id
29
+ # Use default application scope and minimal delegated scopes
31
30
super ().__init__ (
32
31
redirect_uri = redirect_uri ,
33
- scopes_application = scopes ,
34
- scopes_delegated = scopes ,
32
+ scopes_application = [ "https://graph.microsoft.com/.default" ] ,
33
+ scopes_delegated = [ "openid" ] ,
35
34
token_url = token_url ,
36
35
** kwargs ,
37
36
)
You can’t perform that action at this time.
0 commit comments