Documentation ¶
Index ¶
- Constants
- type Approval
- type AuthenticatedRequestFactory
- func (arf AuthenticatedRequestFactory) Delete(target Target, path string, query string) (*http.Request, error)
- func (arf AuthenticatedRequestFactory) Get(target Target, path string, query string) (*http.Request, error)
- func (arf AuthenticatedRequestFactory) PatchJson(target Target, path string, query string, objToJsonify interface{}) (*http.Request, error)
- func (arf AuthenticatedRequestFactory) PostForm(target Target, path string, query string, data *url.Values) (*http.Request, error)
- func (arf AuthenticatedRequestFactory) PostJson(target Target, path string, query string, objToJsonify interface{}) (*http.Request, error)
- func (arf AuthenticatedRequestFactory) PutJson(target Target, path string, query string, objToJsonify interface{}) (*http.Request, error)
- type AuthenticatedRequester
- func (ug AuthenticatedRequester) Delete(client *http.Client, config Config, path string, query string) ([]byte, error)
- func (ag AuthenticatedRequester) Get(client *http.Client, config Config, path string, query string) ([]byte, error)
- func (ag AuthenticatedRequester) PatchJson(client *http.Client, config Config, path string, query string, ...) ([]byte, error)
- func (ag AuthenticatedRequester) PostForm(client *http.Client, config Config, path string, query string, ...) ([]byte, error)
- func (ag AuthenticatedRequester) PostJson(client *http.Client, config Config, path string, query string, ...) ([]byte, error)
- func (ag AuthenticatedRequester) PutJson(client *http.Client, config Config, path string, query string, ...) ([]byte, error)
- type AuthorizationCodeClient
- type ClientCredentialsClient
- type ClientManager
- func (cm *ClientManager) ChangeSecret(clientId string, newSecret string) error
- func (cm *ClientManager) Create(toCreate UaaClient) (UaaClient, error)
- func (cm *ClientManager) Delete(clientId string) (UaaClient, error)
- func (cm *ClientManager) Get(clientId string) (UaaClient, error)
- func (cm *ClientManager) List() ([]UaaClient, error)
- func (cm *ClientManager) Update(toUpdate UaaClient) (UaaClient, error)
- type Config
- type CurlManager
- type GrantType
- type GroupManager
- func (gm GroupManager) AddMember(groupID, userID string) error
- func (gm GroupManager) Create(toCreate ScimGroup) (ScimGroup, error)
- func (gm GroupManager) Delete(groupID string) (ScimGroup, error)
- func (gm GroupManager) Get(groupID string) (ScimGroup, error)
- func (gm GroupManager) GetByName(name, attributes string) (ScimGroup, error)
- func (gm GroupManager) List(filter, sortBy, attributes string, sortOrder ScimSortOrder, ...) (PaginatedGroupList, error)
- func (gm GroupManager) Update(toUpdate ScimGroup) (ScimGroup, error)
- type GroupMembership
- type HttpRequestFactory
- type JWK
- type Keys
- type PaginatedClientList
- type PaginatedGroupList
- type PaginatedUserList
- type PhoneNumber
- type RefreshTokenClient
- type Requester
- type ResourceOwnerPasswordClient
- type ScimGroup
- type ScimGroupMember
- type ScimMetaInfo
- type ScimSortOrder
- type ScimUser
- type ScimUserEmail
- type ScimUserGroup
- type ScimUserName
- type Target
- type TokenFormat
- type TokenResponse
- type UaaClient
- type UaaContext
- type UaaHealthStatus
- type UaaInfo
- type UnauthenticatedRequestFactory
- func (urf UnauthenticatedRequestFactory) Delete(target Target, path string, query string) (*http.Request, error)
- func (urf UnauthenticatedRequestFactory) Get(target Target, path string, query string) (*http.Request, error)
- func (urf UnauthenticatedRequestFactory) PatchJson(target Target, path string, query string, objToJsonify interface{}) (*http.Request, error)
- func (urf UnauthenticatedRequestFactory) PostForm(target Target, path string, query string, data *url.Values) (*http.Request, error)
- func (urf UnauthenticatedRequestFactory) PostJson(target Target, path string, query string, objToJsonify interface{}) (*http.Request, error)
- func (urf UnauthenticatedRequestFactory) PutJson(target Target, path string, query string, objToJsonify interface{}) (*http.Request, error)
- type UnauthenticatedRequester
- func (ug UnauthenticatedRequester) Delete(client *http.Client, config Config, path string, query string) ([]byte, error)
- func (ug UnauthenticatedRequester) Get(client *http.Client, config Config, path string, query string) ([]byte, error)
- func (ug UnauthenticatedRequester) PatchJson(client *http.Client, config Config, path string, query string, ...) ([]byte, error)
- func (ug UnauthenticatedRequester) PostForm(client *http.Client, config Config, path string, query string, ...) ([]byte, error)
- func (ug UnauthenticatedRequester) PostJson(client *http.Client, config Config, path string, query string, ...) ([]byte, error)
- func (ug UnauthenticatedRequester) PutJson(client *http.Client, config Config, path string, query string, ...) ([]byte, error)
- type UserManager
- func (um UserManager) Activate(userID string, userMetaVersion int) error
- func (um UserManager) Create(toCreate ScimUser) (ScimUser, error)
- func (um UserManager) Deactivate(userID string, userMetaVersion int) error
- func (um UserManager) Delete(userId string) (ScimUser, error)
- func (um UserManager) Get(userId string) (ScimUser, error)
- func (um UserManager) GetByUsername(username, origin, attributes string) (ScimUser, error)
- func (um UserManager) List(filter, sortBy, attributes string, sortOrder ScimSortOrder, ...) (PaginatedUserList, error)
- func (um UserManager) Update(toUpdate ScimUser) (ScimUser, error)
- type Userinfo
Constants ¶
View Source
const ( OK = UaaHealthStatus("ok") ERROR = UaaHealthStatus("health_error") )
View Source
const ( OPAQUE = TokenFormat("opaque") JWT = TokenFormat("jwt") )
View Source
const ( REFRESH_TOKEN = GrantType("refresh_token") AUTHCODE = GrantType("authorization_code") IMPLICIT = GrantType("implicit") PASSWORD = GrantType("password") CLIENT_CREDENTIALS = GrantType("client_credentials") )
View Source
const ( SORT_ASCENDING = ScimSortOrder("ascending") SORT_DESCENDING = ScimSortOrder("descending") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticatedRequestFactory ¶
type AuthenticatedRequestFactory struct{}
type AuthenticatedRequester ¶
type AuthenticatedRequester struct{}
type AuthorizationCodeClient ¶
func (AuthorizationCodeClient) RequestToken ¶
func (acc AuthorizationCodeClient) RequestToken(httpClient *http.Client, config Config, format TokenFormat, code string, redirectUri string) (TokenResponse, error)
type ClientCredentialsClient ¶
func (ClientCredentialsClient) RequestToken ¶
func (cc ClientCredentialsClient) RequestToken(httpClient *http.Client, config Config, format TokenFormat) (TokenResponse, error)
type ClientManager ¶
func (*ClientManager) ChangeSecret ¶
func (cm *ClientManager) ChangeSecret(clientId string, newSecret string) error
func (*ClientManager) Create ¶
func (cm *ClientManager) Create(toCreate UaaClient) (UaaClient, error)
func (*ClientManager) List ¶
func (cm *ClientManager) List() ([]UaaClient, error)
type Config ¶
type Config struct { Verbose bool ZoneSubdomain string Targets map[string]Target ActiveTargetName string }
func NewConfigWithServerURL ¶
func (*Config) AddContext ¶
func (c *Config) AddContext(newContext UaaContext)
func (Config) GetActiveContext ¶
func (c Config) GetActiveContext() UaaContext
func (Config) GetActiveTarget ¶
type CurlManager ¶
type GroupManager ¶
func (GroupManager) AddMember ¶
func (gm GroupManager) AddMember(groupID, userID string) error
func (GroupManager) GetByName ¶
func (gm GroupManager) GetByName(name, attributes string) (ScimGroup, error)
func (GroupManager) List ¶
func (gm GroupManager) List(filter, sortBy, attributes string, sortOrder ScimSortOrder, startIdx, count int) (PaginatedGroupList, error)
type GroupMembership ¶
type HttpRequestFactory ¶
type HttpRequestFactory interface { Get(Target, string, string) (*http.Request, error) Delete(Target, string, string) (*http.Request, error) PostForm(Target, string, string, *url.Values) (*http.Request, error) PostJson(Target, string, string, interface{}) (*http.Request, error) PutJson(Target, string, string, interface{}) (*http.Request, error) }
type JWK ¶
type PaginatedClientList ¶
type PaginatedGroupList ¶
type PaginatedUserList ¶
type PhoneNumber ¶
type PhoneNumber struct {
Value string `json:"value"`
}
type RefreshTokenClient ¶
func (RefreshTokenClient) RequestToken ¶
func (rc RefreshTokenClient) RequestToken(httpClient *http.Client, config Config, format TokenFormat, refreshToken string) (TokenResponse, error)
type Requester ¶
type Requester interface { Get(client *http.Client, config Config, path string, query string) ([]byte, error) Delete(client *http.Client, config Config, path string, query string) ([]byte, error) PostForm(client *http.Client, config Config, path string, query string, body map[string]string) ([]byte, error) PostJson(client *http.Client, config Config, path string, query string, body interface{}) ([]byte, error) PutJson(client *http.Client, config Config, path string, query string, body interface{}) ([]byte, error) }
type ResourceOwnerPasswordClient ¶
type ResourceOwnerPasswordClient struct { ClientId string ClientSecret string Username string Password string }
func (ResourceOwnerPasswordClient) RequestToken ¶
func (rop ResourceOwnerPasswordClient) RequestToken(httpClient *http.Client, config Config, format TokenFormat) (TokenResponse, error)
type ScimGroup ¶
type ScimGroup struct { ID string `json:"id,omitempty"` Meta *ScimMetaInfo `json:"meta,omitempty"` DisplayName string `json:"displayName,omitempty"` ZoneID string `json:"zoneId,omitempty"` Description string `json:"description,omitempty"` Members []ScimGroupMember `json:"members,omitempty"` Schemas []string `json:"schemas,omitempty"` }
type ScimGroupMember ¶
type ScimMetaInfo ¶
type ScimSortOrder ¶
type ScimSortOrder string
type ScimUser ¶
type ScimUser struct { ID string `json:"id,omitempty"` Password string `json:"password,omitempty"` ExternalId string `json:"externalId,omitempty"` Meta *ScimMetaInfo `json:"meta,omitempty"` Username string `json:"userName,omitempty"` Name *ScimUserName `json:"name,omitempty"` Emails []ScimUserEmail `json:"emails,omitempty"` Groups []ScimUserGroup `json:"groups,omitempty"` Approvals []Approval `json:"approvals,omitempty"` PhoneNumbers []PhoneNumber `json:"phoneNumbers,omitempty"` Active *bool `json:"active,omitempty"` Verified *bool `json:"verified,omitempty"` Origin string `json:"origin,omitempty"` ZoneId string `json:"zoneId,omitempty"` PasswordLastModified string `json:"passwordLastModified,omitempty"` PreviousLogonTime int `json:"previousLogonTime,omitempty"` LastLogonTime int `json:"lastLogonTime,omitempty"` Schemas []string `json:"schemas,omitempty"` }
type ScimUserEmail ¶
type ScimUserGroup ¶
type ScimUserName ¶
type Target ¶
type Target struct { BaseUrl string SkipSSLValidation bool Contexts map[string]UaaContext ActiveContextName string }
func (Target) GetActiveContext ¶
func (t Target) GetActiveContext() UaaContext
type TokenFormat ¶
type TokenFormat string
type TokenResponse ¶
type UaaClient ¶
type UaaClient struct { ClientId string `json:"client_id,omitempty"` ClientSecret string `json:"client_secret,omitempty"` Scope []string `json:"scope,omitempty"` ResourceIds []string `json:"resource_ids,omitempty"` AuthorizedGrantTypes []string `json:"authorized_grant_types,omitempty"` RedirectUri []string `json:"redirect_uri,omitempty"` Authorities []string `json:"authorities,omitempty"` TokenSalt string `json:"token_salt,omitempty"` AllowedProviders []string `json:"allowedproviders,omitempty"` DisplayName string `json:"name,omitempty"` LastModified int64 `json:"lastModified,omitempty"` RequiredUserGroups []string `json:"required_user_groups,omitempty"` AccessTokenValidity int64 `json:"access_token_validity,omitempty"` RefreshTokenValidity int64 `json:"refresh_token_validity,omitempty"` }
func (*UaaClient) PreCreateValidation ¶
type UaaContext ¶
type UaaContext struct { ClientId string `json:"client_id"` GrantType GrantType `json:"grant_type"` Username string `json:"username"` TokenResponse }
func NewContextWithToken ¶
func NewContextWithToken(accessToken string) UaaContext
type UaaHealthStatus ¶
type UaaHealthStatus string
func Health ¶
func Health(target Target) (UaaHealthStatus, error)
type UaaInfo ¶
type UaaInfo struct { App uaaApp `json:"app"` Links uaaLinks `json:"links"` Prompts map[string][]string `json:"prompts"` ZoneName string `json:"zone_name"` EntityId string `json:"entityID"` CommitId string `json:"commit_id"` Timestamp string `json:"timestamp"` IdpDefinitions map[string]string `json:"idpDefinitions"` }
type UnauthenticatedRequestFactory ¶
type UnauthenticatedRequestFactory struct{}
type UnauthenticatedRequester ¶
type UnauthenticatedRequester struct{}
type UserManager ¶
func (UserManager) Activate ¶
func (um UserManager) Activate(userID string, userMetaVersion int) error
func (UserManager) Deactivate ¶
func (um UserManager) Deactivate(userID string, userMetaVersion int) error
func (UserManager) GetByUsername ¶
func (um UserManager) GetByUsername(username, origin, attributes string) (ScimUser, error)
func (UserManager) List ¶
func (um UserManager) List(filter, sortBy, attributes string, sortOrder ScimSortOrder, startIdx, count int) (PaginatedUserList, error)
type Userinfo ¶
type Userinfo struct { UserId string `json:"user_id"` Sub string `json:"sub"` Username string `json:"user_name"` GivenName string `json:"given_name"` FamilyName string `json:"family_name"` Email string `json:"email"` PhoneNumber []string `json:"phone_number"` PreviousLoginTime int64 `json:"previous_logon_time"` Name string `json:"name"` }
Click to show internal directories.
Click to hide internal directories.