ussodischarge

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: AGPL-3.0 Imports: 25 Imported by: 1

Documentation

Overview

Pacakge ussodischarge is an identity provider that authenticates against Ubuntu SSO using Ubuntu SSO's macaroon protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIdentityProvider

func NewIdentityProvider(p Params) (idp.IdentityProvider, error)

NewIdentityProvider creates an idp.IdentityProvider that uses Ubuntu SSO macaroon authentication, with the configuration defined by p.

Types

type Params

type Params struct {
	// Domain will be appended to any usernames or groups provided by
	// the identity provider. A user created by this identity provide
	// will be openid@domain.
	Domain string `yaml:"domain"`

	// URL is the address of the Ubuntu SSO server.
	URL string `yaml:"url"`

	// PublicKey is the RSA public key used to encrypt caveats for
	// UbuntuSSO third party caveats.
	PublicKey PublicKey `yaml:"public-key"`
}

Params holds the parameters to use with UbuntuSSO macaroon identity providers.

type PublicKey

type PublicKey struct {
	rsa.PublicKey
}

PublicKey is a PublicKey parameter for

func (*PublicKey) UnmarshalText

func (k *PublicKey) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler by unmarshaling the PEM-encoded RSA public key from text.

Directories

Path Synopsis
cmd
login
login is a simple tool that can be used to test the Ubuntu SSO discharge login protocol.
login is a simple tool that can be used to test the Ubuntu SSO discharge login protocol.

Jump to

Keyboard shortcuts

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