@@ -42,8 +42,7 @@ def authorization_code(self, client_id, client_secret, code,
4242 'code' : code ,
4343 'grant_type' : grant_type ,
4444 'redirect_uri' : redirect_uri ,
45- },
46- headers = {'Content-Type' : 'application/json' }
45+ }
4746 )
4847
4948 def authorization_code_pkce (self , client_id , code_verifier , code ,
@@ -79,8 +78,7 @@ def authorization_code_pkce(self, client_id, code_verifier, code,
7978 'code' : code ,
8079 'grant_type' : grant_type ,
8180 'redirect_uri' : redirect_uri ,
82- },
83- headers = {'Content-Type' : 'application/json' }
81+ }
8482 )
8583
8684 def client_credentials (self , client_id , client_secret , audience ,
@@ -113,8 +111,7 @@ def client_credentials(self, client_id, client_secret, audience,
113111 'client_secret' : client_secret ,
114112 'audience' : audience ,
115113 'grant_type' : grant_type ,
116- },
117- headers = {'Content-Type' : 'application/json' }
114+ }
118115 )
119116
120117 def login (self , client_id , client_secret , username , password , scope , realm ,
@@ -164,8 +161,7 @@ def login(self, client_id, client_secret, username, password, scope, realm,
164161 'scope' : scope ,
165162 'audience' : audience ,
166163 'grant_type' : grant_type
167- },
168- headers = {'Content-Type' : 'application/json' }
164+ }
169165 )
170166
171167 def refresh_token (self , client_id , client_secret , refresh_token , grant_type = 'refresh_token' ):
@@ -194,6 +190,5 @@ def refresh_token(self, client_id, client_secret, refresh_token, grant_type='ref
194190 'client_secret' : client_secret ,
195191 'refresh_token' : refresh_token ,
196192 'grant_type' : grant_type
197- },
198- headers = {'Content-Type' : 'application/json' }
193+ }
199194 )
0 commit comments