Versions in this module Expand all Collapse all v0 v0.4.1 Nov 20, 2021 Changes in this version type UserService + func (s *UserService) GetCustomAttributes(ctx context.Context) ([]string, error) v0.4.0 Nov 20, 2021 v0.3.0 Nov 20, 2021 v0.2.0 Nov 20, 2019 Changes in this version + type AuthResponse struct + CallbackURL string + Devices []*Device + ExpiresAt string + ReturnToURL string + SessionToken string + StateToken string + Status string + User *AuthenticatedUser type Client + SAMLService *SAMLService + type Device struct + DeviceID int64 + DeviceType string + type SAMLAssertion struct + Assertion *string + MFA *SAMLResponseMFA + Message string + Status string + type SAMLResponseMFA struct + CallbackURL string + Devices []*Device + StateToken string + User *AuthenticatedUser + type SAMLService struct + func (s *SAMLService) GenerateSAMLAssertion(ctx context.Context, emailOrUsername, password, appID, ipAddress string) (*SAMLAssertion, error) + func (s *SAMLService) GenerateSAMLAssertionWithVerify(ctx context.Context, emailOrUsername, password, appID, ipAddress string, ...) (*SAMLAssertion, error) v0.1.0 May 1, 2019 Changes in this version + func CheckResponse(r *http.Response) error + type AuthenticatedUser struct + Email string + FirstName string + ID int64 + LastName string + Username string + type Client struct + BaseURL *url.URL + Group *GroupService + Login *LoginService + Oauth *OauthService + Role *RoleService + User *UserService + UserAgent string + func New(clientID, clientSecret, shard, subdomain string) *Client + func (c *Client) AddAuthorization(ctx context.Context, req *http.Request) error + func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*Response, error) + func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error) + type Devices struct + DeviceID int64 + DeviceType string + type ErrorResponse struct + Code int64 + Message string + Response *http.Response + Type string + func (r *ErrorResponse) Error() string + type Group struct + ID int64 + Name string + type GroupService struct + func (s *GroupService) GetGroups(ctx context.Context) ([]*Group, error) + type LoginService struct + func (s *LoginService) Authenticate(ctx context.Context, emailOrUsername string, password string) (*AuthenticatedUser, error) + func (s *LoginService) AuthenticateWithPushVerify(ctx context.Context, emailOrUsername string, password string, device string) error + func (s *LoginService) AuthenticateWithVerify(ctx context.Context, emailOrUsername string, password string, device string, ...) (*AuthenticatedUser, error) + func (s *LoginService) VerifyPushToken(ctx context.Context, token string) (*AuthenticatedUser, error) + type OauthService struct + type Response struct + PaginationAfterCursor *string + PaginationBeforeCursor *string + type Role struct + ID int64 + Name string + type RoleService struct + func (s *RoleService) GetRole(ctx context.Context, id int64) (*Role, error) + func (s *RoleService) GetRoles(ctx context.Context) ([]*Role, error) + type User struct + ActivatedAt string + CreatedAt string + CustomAttributes map[string]string + DirectoryID int64 + DistinguishedName string + Email string + ExternalID string + FirstName string + GroupID int64 + ID int64 + InvalidLoginAttempts int64 + InvitationSentAt string + LastLogin string + LastName string + LocaleCode string + LockedUntil string + ManagerAdID int + MemberOf []string + Notes string + OpenidName string + PasswordChangedAt string + Phone string + RoleIDs []int64 + SamAccountName string + Status int64 + UpdatedAt string + UserPrincipalName string + Username string + type UserService struct + func (s *UserService) GetUser(ctx context.Context, id int64) (*User, error) + func (s *UserService) GetUsers(ctx context.Context) ([]*User, error) + func (s *UserService) UpdateCustomAttributes(ctx context.Context, id int64, attributes map[string]string) error