-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Listen for SAML login requests #1219
base: master
Are you sure you want to change the base?
Conversation
free(cfg->domain_suffix); | ||
cfg->domain_suffix = val; | ||
continue; | ||
} else if (strcmp(key, "dns") == 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAICS this block is never reached due to the same if-clause above.
continue; | ||
} else if (strcmp(key, "saml-login") == 0) { | ||
free(cfg->saml_port); | ||
cfg->saml_port = atol(val); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we freeing an int here? And why atol instead of atoi when saml_port is actually an int?
Any updates on this? Just had to go through the rather cumbersome SAML flow with openfortivpn-webview and realized that this branch obsoletes that method entirely. Hoping this can be merged soon. |
When started with
--saml-login
the program creates a http server that accepts SAML login requestsThe server will remain open and refresh the connection whenever a request is made
The solution also implements a method of overriding the routes from the server with ones specified in the config file
It needs a little more work on the logging part.