provider

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttributeNameAwsSessionDuration = "https://aws.amazon.com/SAML/Attributes/SessionDuration"
	AttributeNameAwsRole            = "https://aws.amazon.com/SAML/Attributes/Role"
)

Variables

This section is empty.

Functions

func GetApplicationMetadataXml added in v0.0.5

func GetApplicationMetadataXml(orgId string, applicationId string, apiKey string) (string, error)

Gets an application's metadata XML for SAML authentication this direct API call is a needed workaround since JumpCloud does not offer this endpoint through its SDK

func New

func New(version string) func() *schema.Provider

Types

type Config

type Config struct {
	APIKey string // User specific auth token
	OrgId  string // Organization ID
}

Config holds the JC configuration

func (*Config) Client

func (c *Config) Client() interface{}

Client instantiates a jcapiv2.Configuration struct that is passed to every Resource operation

type UserGroup added in v0.0.5

type UserGroup struct {
	// ID uniquely identifies a User Group.
	ID string `json:"id,omitempty"`

	// Type is the type of the group.
	Type string `json:"type,omitempty"`

	// Display name of a User Group.
	Name       string                `json:"name,omitempty"`
	Attributes jcapiv2.UserGroupPost `json:"attributes,omitempty"`
}

UserGroup is like jcapiv2.UserGroup with Attributes

func GroupReadHelperName added in v0.3.0

func GroupReadHelperName(config *jcapiv2.Configuration, name string) (ug []*UserGroup,
	ok bool, err error)

Jump to

Keyboard shortcuts

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