forked from criteo/haproxy-spoe-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since our library https://github.com/criteo/haproxy-spoe-go has not been updated since a while and that some part of the specification are not well respected (here field engine-id and capability pipelining should be optional), migrate to a better maintained library. Using this library, we could now enable the spop-check in HAProxy for this component.
- Loading branch information
Showing
7 changed files
with
143 additions
and
191 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
package auth | ||
|
||
import spoe "github.com/criteo/haproxy-spoe-go" | ||
import ( | ||
action "github.com/negasus/haproxy-spoe-go/action" | ||
message "github.com/negasus/haproxy-spoe-go/message" | ||
) | ||
|
||
// Authenticator the authenticator interface that can be implemented for LDAP, OAuth2, OIDC or whatever else. | ||
type Authenticator interface { | ||
// Check whether the user is authenticated by this authenticator | ||
Authenticate(msg *spoe.Message) (bool, []spoe.Action, error) | ||
Authenticate(msg *message.Message) (bool, []action.Action, error) | ||
} |
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
Oops, something went wrong.