extract authentik baseurl

This commit is contained in:
Philipp Rothmann 2022-11-08 15:22:45 +01:00
parent 1922c8423e
commit 9ca056376c
3 changed files with 10 additions and 5 deletions

View file

@ -1,12 +1,11 @@
from typing import List
from flask_jwt_extended import get_jwt
import requests
from config import AUTHENTIK_BASEURL
from .error_handler import AuthentikError
AUTHENTIK_BASEURL = "https://dev.local-it.cloud/api/v3"
class AuthentikApi: # TODO: check if can be replaced with apispec generated api?
class AuthentikApi: # TODO: check if can be replaced with apispec generated api?
@staticmethod
def __handleError(res):
if res.status_code >= 400: