@@ -36,7 +36,7 @@ def authorization_code(
3636 """
3737
3838 return self .authenticated_post (
39- "{ }://{}/oauth/token". format ( self . protocol , self . domain ) ,
39+ f" { self . protocol } ://{ self . domain } /oauth/token" ,
4040 data = {
4141 "client_id" : self .client_id ,
4242 "code" : code ,
@@ -74,7 +74,7 @@ def authorization_code_pkce(
7474 """
7575
7676 return self .post (
77- "{ }://{}/oauth/token". format ( self . protocol , self . domain ) ,
77+ f" { self . protocol } ://{ self . domain } /oauth/token" ,
7878 data = {
7979 "client_id" : self .client_id ,
8080 "code_verifier" : code_verifier ,
@@ -106,7 +106,7 @@ def client_credentials(
106106 """
107107
108108 return self .authenticated_post (
109- "{ }://{}/oauth/token". format ( self . protocol , self . domain ) ,
109+ f" { self . protocol } ://{ self . domain } /oauth/token" ,
110110 data = {
111111 "client_id" : self .client_id ,
112112 "audience" : audience ,
@@ -154,7 +154,7 @@ def login(
154154 """
155155
156156 return self .authenticated_post (
157- "{ }://{}/oauth/token". format ( self . protocol , self . domain ) ,
157+ f" { self . protocol } ://{ self . domain } /oauth/token" ,
158158 data = {
159159 "client_id" : self .client_id ,
160160 "username" : username ,
@@ -190,7 +190,7 @@ def refresh_token(
190190 """
191191
192192 return self .authenticated_post (
193- "{ }://{}/oauth/token". format ( self . protocol , self . domain ) ,
193+ f" { self . protocol } ://{ self . domain } /oauth/token" ,
194194 data = {
195195 "client_id" : self .client_id ,
196196 "refresh_token" : refresh_token ,
@@ -223,7 +223,7 @@ def passwordless_login(self, username, otp, realm, scope, audience):
223223 """
224224
225225 return self .authenticated_post (
226- "{ }://{}/oauth/token". format ( self . protocol , self . domain ) ,
226+ f" { self . protocol } ://{ self . domain } /oauth/token" ,
227227 data = {
228228 "client_id" : self .client_id ,
229229 "username" : username ,
0 commit comments