This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from authentik.sources.plex.models import UserPlexSourceConnection | |
import json | |
connection = UserPlexSourceConnection.objects.filter(user=request.user).first() | |
if not connection: | |
ak_logger.info("Overseer: No Plex connection found") | |
return {} | |
base_url = "http://overseerr.apps:5055" | |
end_point = "/api/v1/auth/plex" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from authentik.sources.plex.models import UserPlexSourceConnection | |
base_url = "http://tautulli.apps:8181" | |
end_point = "/auth/signin" | |
headers = { | |
"Content-Type": "application/x-www-form-urlencoded", | |
} | |
def auth_with_plex(): |