oktaalb

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL