Skip to content
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

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Conversation

dsl400
Copy link

@dsl400 dsl400 commented May 19, 2024

When started with --saml-login the program creates a http server that accepts SAML login requests
The 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.

@dsl400 dsl400 mentioned this pull request May 20, 2024
free(cfg->domain_suffix);
cfg->domain_suffix = val;
continue;
} else if (strcmp(key, "dns") == 0) {

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);

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?

@IslandNolan
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants