Skip to content

Commit 7a4b4b9

Browse files
committed
WIP: tokens
1 parent 25c467a commit 7a4b4b9

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

jwt_proxy/api.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from flask import Blueprint, abort, current_app, jsonify, request, json as flask_json
1+
from flask import Blueprint, abort, current_app, jsonify, request
22
import jwt
33
import requests
44
import json
@@ -11,13 +11,9 @@
1111

1212
# Workaround no JSON representation for datetime.timedelta
1313
class CustomJSONProvider(DefaultJSONProvider):
14-
def __init__(self, app):
15-
print("Initialized the provider")
16-
super().__init__(app)
17-
18-
def default(self, o):
19-
print("Using default")
20-
return str(o)
14+
@staticmethod
15+
def default(obj):
16+
return str(obj)
2117

2218

2319
def proxy_request(req, upstream_url, user_info=None):

0 commit comments

Comments
 (0)