extract authentik baseurl
This commit is contained in:
parent
1922c8423e
commit
9ca056376c
3 changed files with 10 additions and 5 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Reference in a new issue