Skip to content

Commit

Permalink
WIP: tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
Filienko committed Aug 8, 2024
1 parent 25c467a commit 7a4b4b9
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions jwt_proxy/api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from flask import Blueprint, abort, current_app, jsonify, request, json as flask_json
from flask import Blueprint, abort, current_app, jsonify, request
import jwt
import requests
import json
Expand All @@ -11,13 +11,9 @@

# Workaround no JSON representation for datetime.timedelta
class CustomJSONProvider(DefaultJSONProvider):
def __init__(self, app):
print("Initialized the provider")
super().__init__(app)

def default(self, o):
print("Using default")
return str(o)
@staticmethod
def default(obj):
return str(obj)


def proxy_request(req, upstream_url, user_info=None):
Expand Down

0 comments on commit 7a4b4b9

Please sign in to comment.