providers

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

Types

type CreateOIDCOpts added in v0.8.0

type CreateOIDCOpts struct {
	// Identity provider name.
	IdpIp string `json:"-"`
	// Mode to access manage identity provider
	AccessMode string `json:"access_mode" required:"true"`
	// URL of the OpenID Connect identity provider.
	// This field corresponds to the iss field in the ID token.
	IdpUrl string `json:"idp_url" required:"true"`
	// ID of a client registered with the OpenID Connect identity provider.
	ClientId string `json:"client_id" required:"true"`
	// Authorization endpoint of the OpenID Connect identity provider.
	AuthEndpoint string `json:"authorization_endpoint,omitempty"`
	// Scope of authorization requests.
	Scope string `json:"scope,omitempty"`
	// Response type
	ResponseType string `json:"response_type,omitempty"`
	// Response mode
	ResponseMode string `json:"response_mode,omitempty"`
	// SigningKey
	SigningKey string `json:"signing_key" required:"true"`
}

func CreateOIDC added in v0.8.0

func GetOIDC added in v0.8.0

func GetOIDC(c *golangsdk.ServiceClient, idpId string) (*CreateOIDCOpts, error)

func UpdateOIDC added in v0.8.0

type CreateOpts

type CreateOpts struct {
	ID          string `json:"-"`
	Description string `json:"description,omitempty"`
	Enabled     bool   `json:"enabled,omitempty"`
}

func (CreateOpts) Id

func (opts CreateOpts) Id() string

func (CreateOpts) ToProviderCreateMap

func (opts CreateOpts) ToProviderCreateMap() (map[string]interface{}, error)

type CreateOptsBuilder

type CreateOptsBuilder interface {
	Id() string
	ToProviderCreateMap() (map[string]interface{}, error)
}

type CreateResult

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

func Create

func Create(client *golangsdk.ServiceClient, opts CreateOptsBuilder) (r CreateResult)

func (CreateResult) Extract

func (r CreateResult) Extract() (*Provider, error)

type DeleteResult

type DeleteResult struct {
	golangsdk.ErrResult
}

func Delete

func Delete(client *golangsdk.ServiceClient, id string) (r DeleteResult)

type GetResult

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

func Get

func Get(client *golangsdk.ServiceClient, id string) (r GetResult)

func (GetResult) Extract

func (r GetResult) Extract() (*Provider, error)

type Provider

type Provider struct {
	ID          string            `json:"id"`
	Description string            `json:"description"`
	Enabled     bool              `json:"enabled"`
	RemoteIDs   []string          `json:"remote_ids"`
	Links       map[string]string `json:"links"`
}

func ExtractProviders

func ExtractProviders(r pagination.Page) ([]Provider, error)

type ProviderPage

type ProviderPage struct {
	pagination.LinkedPageBase
}

func (ProviderPage) IsEmpty

func (p ProviderPage) IsEmpty() (bool, error)

type UpdateOIDCOpts added in v0.8.0

type UpdateOIDCOpts struct {
	// Identity provider name.
	IdpIp string `json:"-"`
	// Mode to access manage identity provider
	AccessMode string `json:"access_mode,omitempty"`
	// URL of the OpenID Connect identity provider.
	// This field corresponds to the iss field in the ID token.
	IdpUrl string `json:"idp_url,omitempty"`
	// ID of a client registered with the OpenID Connect identity provider.
	ClientId string `json:"client_id,omitempty"`
	// Authorization endpoint of the OpenID Connect identity provider.
	AuthEndpoint string `json:"authorization_endpoint,omitempty"`
	// Scope of authorization requests.
	Scope string `json:"scope,omitempty"`
	// Response type
	ResponseType string `json:"response_type,omitempty"`
	// Response mode
	ResponseMode string `json:"response_mode,omitempty"`
	// SigningKey
	SigningKey string `json:"signing_key,omitempty"`
}

type UpdateOpts

type UpdateOpts struct {
	Description string `json:"description,omitempty"`
	Enabled     *bool  `json:"enabled,omitempty"`
}

func (UpdateOpts) ToUpdateOptsMap

func (opts UpdateOpts) ToUpdateOptsMap() (map[string]interface{}, error)

type UpdateOptsBuilder

type UpdateOptsBuilder interface {
	ToUpdateOptsMap() (map[string]interface{}, error)
}

type UpdateResult

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

func Update

func Update(client *golangsdk.ServiceClient, id string, opts UpdateOptsBuilder) (r UpdateResult)

func (UpdateResult) Extract

func (r UpdateResult) Extract() (*Provider, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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