-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX login loop due to unsecured cookie
I think the login loop was due to the browser not being happy with the cookie. Toggling the secure cookie flag seems to fix this. I also forced samesite to none at the time, but I'm not sure if that's necessary. This patch doesn't force samesite to none, cause I'm hoping the automatic samesite none code works fine without us having to do anything. So I added code that'll set the secure cookie flag to true if we're using a SIMPLESAMLPHP_BASEURL that starts with https. Note that SIMPLESAMLPHP_BASEURL config is needed because SimpleSAMLphp errors out if the application baseURL isn't https. Since we have an ingress load balancer in front of the pods handling https, SimpleSAMLphp itself doesn't know we're actually using https without this setting. Sent SimpleSAMLphp logs to stderr so they show up in the kubectl logs. Easiest way for us to see those logs.
- Loading branch information
1 parent
520d974
commit 5743474
Showing
3 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
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
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
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