瀏覽代碼

added var params for jwt token

deeejas 9 月之前
父節點
當前提交
784f3f36e7
共有 1 個文件被更改,包括 2 次插入0 次删除
  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