Documentation
¶
Index ¶
- type AuthCommands
- type AuthorizeCommand
- type CreateGroupCommand
- type DeleteGroupCommand
- type DeleteUserCommand
- type DiscoverCommand
- type GetGroupCommand
- type GetUserCommand
- type GroupCommands
- type JoinGroupsCommand
- type LeaveGroupsCommand
- type ListGroupsCommand
- type ListProvidersCommand
- type ListScopesCommand
- type ListUsersCommand
- type ManagerCommands
- type ProviderCommands
- type RefreshCommand
- type RevokeCommand
- type ScopeCommands
- type TokenStore
- type UpdateGroupCommand
- type UpdateUserCommand
- type UserCommands
- type UserInfoCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthCommands ¶
type AuthCommands struct {
Authorize AuthorizeCommand `cmd:"" help:"Authorize to a provider and save the resulting token for future use." group:"AUTH"`
Refresh RefreshCommand `cmd:"" help:"Refresh a stored OAuth token for an endpoint." group:"AUTH"`
Revoke RevokeCommand `cmd:"" help:"Revoke and remove a stored OAuth token for an endpoint." group:"AUTH"`
UserInfo UserInfoCommand `cmd:"" name:"userinfo" help:"Fetch userinfo using the stored OAuth token for an endpoint." group:"AUTH"`
Discover DiscoverCommand `cmd:"" help:"Discover the authorization metadata for an endpoint." group:"AUTH"`
}
type AuthorizeCommand ¶
type AuthorizeCommand struct {
Endpoint string `` /* 138-byte string literal not displayed */
Provider string `name:"provider" help:"Provider hint to pass to the authorization endpoint when multiple providers are configured."`
ClientID string `name:"client-id" help:"OAuth client ID. Defaults to the stored client ID."`
ClientSecret string `name:"client-secret" help:"OAuth client secret. Defaults to the stored client secret when required by the provider."`
Redirect string `` /* 169-byte string literal not displayed */
Scopes []string `` /* 148-byte string literal not displayed */
}
func (AuthorizeCommand) RedactedString ¶ added in v0.0.7
func (cmd AuthorizeCommand) RedactedString() string
type CreateGroupCommand ¶
type CreateGroupCommand struct {
GetGroupCommand
schema.GroupMeta
}
type DeleteGroupCommand ¶
type DeleteGroupCommand struct {
GetGroupCommand
}
type DeleteUserCommand ¶
type DeleteUserCommand struct {
GetUserCommand
}
type DiscoverCommand ¶
type DiscoverCommand struct {
Endpoint string `` /* 138-byte string literal not displayed */
}
type GetGroupCommand ¶
type GetGroupCommand struct {
Group string `arg:"" name:"group" help:"Group identifier"`
}
type GetUserCommand ¶
type GroupCommands ¶
type GroupCommands struct {
Groups ListGroupsCommand `cmd:"" name:"groups" help:"Get Groups." group:"AUTH MANAGER"`
Group GetGroupCommand `cmd:"" name:"group" help:"Get Group." group:"AUTH MANAGER"`
CreateGroup CreateGroupCommand `cmd:"" name:"group-create" help:"Create Group." group:"AUTH MANAGER"`
UpdateGroup UpdateGroupCommand `cmd:"" name:"group-update" help:"Update Group." group:"AUTH MANAGER"`
DeleteGroup DeleteGroupCommand `cmd:"" name:"group-delete" help:"Delete Group." group:"AUTH MANAGER"`
}
type JoinGroupsCommand ¶
type JoinGroupsCommand struct {
GetUserCommand
Groups []string `arg:"" name:"groups" help:"Groups to add user to."`
}
type LeaveGroupsCommand ¶
type LeaveGroupsCommand struct {
GetUserCommand
Groups []string `arg:"" name:"groups" help:"Groups to remove user from."`
}
type ListGroupsCommand ¶
type ListGroupsCommand struct {
schema.GroupListRequest
}
type ListProvidersCommand ¶
type ListProvidersCommand struct{}
type ListScopesCommand ¶
type ListScopesCommand struct {
schema.ScopeListRequest
}
type ListUsersCommand ¶
type ListUsersCommand struct {
schema.UserListRequest
}
type ManagerCommands ¶
type ManagerCommands struct {
ProviderCommands
ScopeCommands
UserCommands
GroupCommands
}
type ProviderCommands ¶
type ProviderCommands struct {
Providers ListProvidersCommand `cmd:"" name:"providers" help:"Get Providers." group:"AUTH MANAGER"`
}
type RefreshCommand ¶
type RefreshCommand struct {
Endpoint string `` /* 138-byte string literal not displayed */
ClientID string `name:"client-id" help:"OAuth client ID. Defaults to the stored client ID for the issuer."`
ClientSecret string `` /* 131-byte string literal not displayed */
}
func (RefreshCommand) RedactedString ¶ added in v0.0.7
func (cmd RefreshCommand) RedactedString() string
func (RefreshCommand) String ¶ added in v0.0.7
func (cmd RefreshCommand) String() string
type RevokeCommand ¶
type RevokeCommand struct {
Endpoint string `` /* 138-byte string literal not displayed */
ClientID string `name:"client-id" help:"OAuth client ID. Defaults to the stored client ID for the issuer."`
ClientSecret string `` /* 131-byte string literal not displayed */
}
func (RevokeCommand) RedactedString ¶ added in v0.0.7
func (cmd RevokeCommand) RedactedString() string
func (RevokeCommand) String ¶ added in v0.0.7
func (cmd RevokeCommand) String() string
type ScopeCommands ¶
type ScopeCommands struct {
Scopes ListScopesCommand `cmd:"" name:"scopes" help:"Get Scopes." group:"AUTH MANAGER"`
}
type TokenStore ¶
type TokenStore struct {
// contains filtered or unexported fields
}
func NewTokenStore ¶
func NewTokenStore(ctx server.Cmd) *TokenStore
func (*TokenStore) StoreToken ¶
func (s *TokenStore) StoreToken(endpoint, issuer string, token *oauth2.Token) error
type UpdateGroupCommand ¶
type UpdateGroupCommand struct {
GetGroupCommand
schema.GroupMeta
}
type UpdateUserCommand ¶
type UpdateUserCommand struct {
GetUserCommand
schema.UserMeta
}
type UserCommands ¶
type UserCommands struct {
Users ListUsersCommand `cmd:"" name:"users" help:"Get Users." group:"AUTH MANAGER"`
User GetUserCommand `cmd:"" name:"user" help:"Get User." group:"AUTH MANAGER"`
UpdateUser UpdateUserCommand `cmd:"" name:"user-update" help:"Update User." group:"AUTH MANAGER"`
DeleteUser DeleteUserCommand `cmd:"" name:"user-delete" help:"Delete User." group:"AUTH MANAGER"`
JoinGroups JoinGroupsCommand `cmd:"" name:"user-join" help:"Add user to groups." group:"AUTH MANAGER"`
LeaveGroups LeaveGroupsCommand `cmd:"" name:"user-leave" help:"Remove user from groups." group:"AUTH MANAGER"`
}
type UserInfoCommand ¶
type UserInfoCommand struct {
Endpoint string `` /* 138-byte string literal not displayed */
ClientID string `name:"client-id" help:"OAuth client ID. Defaults to the stored client ID for the issuer when a refresh is needed."`
ClientSecret string `` /* 126-byte string literal not displayed */
}
func (UserInfoCommand) RedactedString ¶ added in v0.0.7
func (cmd UserInfoCommand) RedactedString() string
func (UserInfoCommand) String ¶ added in v0.0.7
func (cmd UserInfoCommand) String() string
Click to show internal directories.
Click to hide internal directories.