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

Control Plugin Enhancements #149

Merged
merged 4 commits into from
Jun 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,13 @@ Compile the binary and you are ready to go:

-config string
JSON configuration file. Convenient instead of using command line switches.


-controlCreds string
Username and password to protect the credentials page. user:pass format

-controlURL string
URL to view captured credentials and settings. (default "SayHello2Modlishka")

-credParams string
Credential regexp with matching groups. e.g. : baase64(username_regex),baase64(password_regex)

Expand Down
3 changes: 2 additions & 1 deletion core/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ func (httpResponse *HTTPResponse) PatchHeaders(p *ReverseProxy) {
}

if p.Terminate {
log.Infof("Terminating session")
log.Infof("Terminating session for %s", p.RequestContext.UserID)
p.RequestContext.InvokeTerminateUserHooks(p.RequestContext.UserID)

// Set Terminator Cookie
value := runtime.TERMINATE_SESSION_COOKIE_NAME + "=" + runtime.TERMINATE_SESSION_COOKIE_VALUE +
Expand Down
Loading