@@ -146,10 +146,10 @@ def get_authorization_request_url(
146146 scope = decorate_scope (scopes , self .client_id ),
147147 )
148148
149- def acquire_token_with_authorization_code (
149+ def acquire_token_by_authorization_code (
150150 self ,
151151 code ,
152- scope , # Syntactically required. STS accepts empty value though.
152+ scopes , # Syntactically required. STS accepts empty value though.
153153 redirect_uri = None ,
154154 # REQUIRED, if the "redirect_uri" parameter was included in the
155155 # authorization request as described in Section 4.1.1, and their
@@ -158,7 +158,7 @@ def acquire_token_with_authorization_code(
158158 """The second half of the Authorization Code Grant.
159159
160160 :param code: The authorization code returned from Authorization Server.
161- :param scope :
161+ :param scopes :
162162
163163 If you requested user consent for multiple resources, here you will
164164 typically want to provide a subset of what you required in AuthCode.
@@ -178,10 +178,10 @@ def acquire_token_with_authorization_code(
178178 # So in theory, you can omit scope here when you were working with only
179179 # one scope. But, MSAL decorates your scope anyway, so they are never
180180 # really empty.
181- assert isinstance (scope , list ), "Invalid parameter type"
182- return self .client .obtain_token_with_authorization_code (
181+ assert isinstance (scopes , list ), "Invalid parameter type"
182+ return self .client .obtain_token_by_authorization_code (
183183 code , redirect_uri = redirect_uri ,
184- data = {"scope" : decorate_scope (scope , self .client_id )},
184+ data = {"scope" : decorate_scope (scopes , self .client_id )},
185185 )
186186
187187 def get_accounts (self ):
0 commit comments