While I understand there are already multiple threads related to Plex SSO, and forwarding the plex credentials across other services. I seem to be experiencing an odd issue.
When creating the scope mapping as per multiple posts state it should be created, everything tests out fine using the test function next to the property mapping.
I press the button, choose the user and it returns the Set-Cookie additional header of connect.sid and all appears to be working.
However, when applying a "real-world" test by attempting to access my overseerr instance with the same user that previously worked during the tests, the plex connection seems to be invalid, and/or no longer works as expected. Even after this, I can run the test again and see that it's working as expected.
The script provided seems to hang up on something when accessing Overseer, and eventually times out after a few minutes stating "PLEX: No Plex connection found" causing a user to not get authenticated with overseer upon accessing it, and eventually the error shows up in the logs.
I'm not sure what's breaking between the test function and the actual attempt to use the property mapping, and I've attempted multiple different ways to accomplish the result with little to no luck, if not making it worse. Below are my logs, and the script I'm currently using.
I'm using the lsio/SWAG container for my proxy provider, and have not changed the defaults within the configs provided by lsio.
Fix: Add the following to the authentik-location.conf file under the error_page 401 = @goauthentik_proxy_signin; (at the time of this post, this is found on line 8)
## Include the Set-Cookie header if present
add_header Set-Cookie $set_cookie;