Documentation ¶
Overview ¶
Package oktaalb implements authorization using Okta and an Amazon Application Load Balancer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // AuthServerURL is the URL of the Okta authorization server. AuthServerURL string `hcl:"auth_server_url,optional"` // AWSRegion is the region of the AWS Application Load Balancer. AWSRegion string `hcl:"aws_region,optional"` // ClientID is the Okta client ID. ClientID string `hcl:"client_id,optional"` // Disabled disables Okta authorization. Disabled bool `hcl:"disabled,optional"` }
Config is the configuration for Okta authorizatioon.
type OktaAuthorizer ¶
type OktaAuthorizer struct {
// contains filtered or unexported fields
}
OktaAuthorizer implements authorization using Okta.
func New ¶
func New(cfg Config, l hclog.Logger) (*OktaAuthorizer, error)
New returns a new Okta authorizer.
func (*OktaAuthorizer) EnforceOktaAuth ¶
func (oa *OktaAuthorizer) EnforceOktaAuth(next http.Handler) http.Handler
EnforceOktaAuth is HTTP middleware that enforces Okta authorization.
Click to show internal directories.
Click to hide internal directories.