okta

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	GroupID string `json:"groupId"`
}

type GroupNotFoundError

type GroupNotFoundError struct {
	Group string
}

func (*GroupNotFoundError) Error

func (e *GroupNotFoundError) Error() string

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func (*Provider) ArgSchema

func (p *Provider) ArgSchema() providers.ArgSchema

func (*Provider) Config

func (o *Provider) Config() gconfig.Config

func (*Provider) Grant

func (p *Provider) Grant(ctx context.Context, subject string, args []byte, grantID string) error

Grant the access by calling Okta's API.

func (*Provider) Init

func (o *Provider) Init(ctx context.Context) error

Init the Okta provider.

func (*Provider) IsActive

func (p *Provider) IsActive(ctx context.Context, subject string, args []byte, grantID string) (bool, error)

IsActive checks whether the access is active by calling Okta's API.

func (*Provider) Options

func (p *Provider) Options(ctx context.Context, arg string) (*types.ArgOptionsResponse, error)

List options for arg

func (*Provider) Revoke

func (p *Provider) Revoke(ctx context.Context, subject string, args []byte, grantID string) error

Revoke the access by calling Okta's API.

func (*Provider) SetupDocs added in v0.4.0

func (p *Provider) SetupDocs() embed.FS

SetupDocs returns the embedded filesystem containing setup documentation.

func (*Provider) TestConfig added in v0.3.1

func (p *Provider) TestConfig(ctx context.Context) error

func (*Provider) ValidateConfig added in v0.4.0

func (p *Provider) ValidateConfig() map[string]providers.ConfigValidationStep

func (*Provider) ValidateGrant added in v0.7.0

func (p *Provider) ValidateGrant() providers.GrantValidationSteps

type UserNotFoundError

type UserNotFoundError struct {
	User string
}

func (*UserNotFoundError) Error

func (e *UserNotFoundError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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