Przeglądaj źródła

added var params for jwt token

deeejas 9 miesięcy temu
rodzic
commit
784f3f36e7
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      anafapi/anafoauth.py

+ 2 - 0
anafapi/anafoauth.py

@@ -26,6 +26,8 @@ class Anafoauth(object):
 
     AUTH_URL = 'https://logincert.anaf.ro/anaf-oauth2/v1/authorize'
     TOKEN_URL = 'https://logincert.anaf.ro/anaf-oauth2/v1/token'
+    AUTH_URL_PARAMS = {'token_content_type': 'jwt'}
+    TOKEN_URL_BODY = {'token_content_type': 'jwt'}
 
     def __init__(self, client_id=None, client_secret=None, redirect_uri=None, auth=None):
         self.client_id = client_id