Documentation
¶
Index ¶
- Constants
- type ADErr
- type AddUser
- type Args
- type AzureGroup
- type AzureUser
- type CreateADGroup
- type CreateADGroupResponse
- type CreateADUser
- type GroupMembers
- type GroupNotFoundError
- type ListGroupsResponse
- type ListUsersResponse
- type PasswordProfile
- type Provider
- func (c *Provider) AddUserToGroup(ctx context.Context, userID string, groupID string) error
- func (p *Provider) ArgSchema() providers.ArgSchema
- func (a *Provider) Config() gconfig.Config
- func (c *Provider) CreateGroup(ctx context.Context, group CreateADGroup) (*CreateADGroupResponse, error)
- func (c *Provider) CreateUser(ctx context.Context, user CreateADUser) error
- func (c *Provider) DeleteGroup(ctx context.Context, groupID string) error
- func (c *Provider) DeleteUser(ctx context.Context, userID string) error
- func (c *Provider) GetGroup(ctx context.Context, groupID string) (*AzureGroup, error)
- func (c *Provider) GetUser(ctx context.Context, userID string) (*AzureUser, error)
- func (p *Provider) Grant(ctx context.Context, subject string, args []byte, grantID string) error
- func (a *Provider) Init(ctx context.Context) error
- func (p *Provider) IsActive(ctx context.Context, subject string, args []byte, grantID string) (bool, error)
- func (c *Provider) ListGroupUsers(ctx context.Context, groupID string) ([]AzureUser, error)
- func (c *Provider) ListGroups(context.Context) ([]AzureGroup, error)
- func (c *Provider) ListUsers(ctx context.Context) ([]AzureUser, error)
- func (p *Provider) Options(ctx context.Context, arg string) (*types.ArgOptionsResponse, error)
- func (c *Provider) RemoveUserFromGroup(ctx context.Context, userID string, groupID string) error
- func (p *Provider) Revoke(ctx context.Context, subject string, args []byte, grantID string) error
- func (p *Provider) SetupDocs() embed.FS
- func (p *Provider) TestConfig(ctx context.Context) error
- func (p *Provider) ValidateConfig() map[string]providers.ConfigValidationStep
- func (p *Provider) ValidateGrant() providers.GrantValidationSteps
- type UserGroups
- type UserNotFoundError
Constants ¶
View Source
const ADAuthorityHost = "https://login.microsoftonline.com"
View Source
const MSGraphBaseURL = "https://graph.microsoft.com/v1.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureGroup ¶
type CreateADGroup ¶
type CreateADGroupResponse ¶
type CreateADUser ¶
type CreateADUser struct { AccountEnabled bool `json:"accountEnabled"` DisplayName string `json:"displayName"` MailNickname string `json:"mailNickname"` UserPrincipalName string `json:"userPrincipalName"` PasswordProfile PasswordProfile `json:"passwordProfile"` }
type GroupMembers ¶
type GroupNotFoundError ¶
type GroupNotFoundError struct {
Group string
}
func (*GroupNotFoundError) Error ¶
func (e *GroupNotFoundError) Error() string
type ListGroupsResponse ¶
type ListGroupsResponse struct { OdataContext string `json:"@odata.context"` OdataNextLink *string `json:"@odata.nextLink,omitempty"` Value []AzureGroup `json:"value"` }
type ListUsersResponse ¶
type PasswordProfile ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) AddUserToGroup ¶
GroupMember.ReadWrite.All
func (*Provider) CreateGroup ¶
func (c *Provider) CreateGroup(ctx context.Context, group CreateADGroup) (*CreateADGroupResponse, error)
func (*Provider) CreateUser ¶
func (c *Provider) CreateUser(ctx context.Context, user CreateADUser) error
func (*Provider) DeleteGroup ¶
func (*Provider) DeleteUser ¶
func (*Provider) IsActive ¶
func (p *Provider) IsActive(ctx context.Context, subject string, args []byte, grantID string) (bool, error)
IsActive checks whether the access is active by calling Azure AD's API.
func (*Provider) ListGroupUsers ¶
GroupMember.Read.All
func (*Provider) ListGroups ¶
func (c *Provider) ListGroups(context.Context) ([]AzureGroup, error)
func (*Provider) RemoveUserFromGroup ¶
GroupMember.ReadWrite.All
func (*Provider) SetupDocs ¶
SetupDocs returns the embedded filesystem containing setup documentation.
func (*Provider) ValidateConfig ¶
func (p *Provider) ValidateConfig() map[string]providers.ConfigValidationStep
func (*Provider) ValidateGrant ¶
func (p *Provider) ValidateGrant() providers.GrantValidationSteps
type UserGroups ¶
type UserNotFoundError ¶
type UserNotFoundError struct {
User string
}
func (*UserNotFoundError) Error ¶
func (e *UserNotFoundError) Error() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.