Versions in this module Expand all Collapse all v1 v1.0.1 Apr 10, 2023 v1.0.0 Mar 15, 2020 Changes in this version + type AllowedURI struct + ClientID int64 + ID int64 + URI string + type AllowedURIResponse struct + Code int + ID int64 + Success bool + type Client struct + ClientID int64 + Email string + Enabled bool + Name string + Paid bool + RedirectURIs []RedirectURI + Secret string + WebSite string + type ClientResponse struct + ClientID int64 + Code int + Success bool + type ClientRole struct + ClientID int64 + ID int64 + Role string + Used bool + type ClientRoleResponse struct + Code int + ID int64 + Success bool + type GrantType struct + ClientID int64 + GrantType string + ID int64 + type GrantTypeResponse struct + Code int + ID int64 + Success bool + type MockOauth2Service struct + ClientID string + Host string + Log *lg.Logger + MockAllowedURI *AllowedURI + MockAllowedURICode int + MockAllowedURIList *[]AllowedURI + MockAllowedURIListCode int + MockAllowedURIResponse *AllowedURIResponse + MockClient *Client + MockClientCode int + MockClientList *[]Client + MockClientListCode int + MockClientResponse *ClientResponse + MockClientRoleList *[]ClientRole + MockClientRoleListCode int + MockClientRoleResponse *ClientRoleResponse + MockGrantTypeList *[]GrantType + MockGrantTypeListCode int + MockGrantTypeResponse *GrantTypeResponse + MockRedirectURIList *[]RedirectURI + MockRedirectURIListCode int + MockRedirectURIResponse *RedirectURIResponse + MockRoleList *[]Role + MockRoleListCode int + MockRoleURIList *[]RoleURI + MockRoleURIListCode int + MockRoleURIResponse *RoleURIResponse + MockUser *User + MockUserCode int + MockUserList *[]User + MockUserListCode int + MockUserResponse *UserResponse + Proxy px.Proxy + Token string + func (s *MockOauth2Service) AddAllowedURI(au *AllowedURI) *AllowedURIResponse + func (s *MockOauth2Service) AddClient(client *Client) *ClientResponse + func (s *MockOauth2Service) AddClientRole(cr *ClientRole) *ClientRoleResponse + func (s *MockOauth2Service) AddGrantType(rd *GrantType) *GrantTypeResponse + func (s *MockOauth2Service) AddRedirectURI(rd *RedirectURI) *RedirectURIResponse + func (s *MockOauth2Service) AddRoleURI(ru *RoleURI) *RoleURIResponse + func (s *MockOauth2Service) AddUser(user *User) *UserResponse + func (s *MockOauth2Service) DeleteAllowedURI(id string) *AllowedURIResponse + func (s *MockOauth2Service) DeleteClient(id string) *ClientResponse + func (s *MockOauth2Service) DeleteClientRole(id string) *ClientRoleResponse + func (s *MockOauth2Service) DeleteGrantType(id string) *GrantTypeResponse + func (s *MockOauth2Service) DeleteRedirectURI(id string) *RedirectURIResponse + func (s *MockOauth2Service) DeleteRoleURI(ru *RoleURI) *RoleURIResponse + func (s *MockOauth2Service) DeleteUser(username string, clientID string) *UserResponse + func (s *MockOauth2Service) GetAllowedURI(id string) (*AllowedURI, int) + func (s *MockOauth2Service) GetAllowedURIList(clientID string) (*[]AllowedURI, int) + func (s *MockOauth2Service) GetClient(clientID string) (*Client, int) + func (s *MockOauth2Service) GetClientList() (*[]Client, int) + func (s *MockOauth2Service) GetClientRoleList(clientID string) (*[]ClientRole, int) + func (s *MockOauth2Service) GetGrantTypeList(clientID string) (*[]GrantType, int) + func (s *MockOauth2Service) GetNew() Service + func (s *MockOauth2Service) GetRedirectURIList(clientID string) (*[]RedirectURI, int) + func (s *MockOauth2Service) GetRoleList() (*[]Role, int) + func (s *MockOauth2Service) GetRoleURIList(uID string) (*[]RoleURI, int) + func (s *MockOauth2Service) GetUser(username string, clientID string) (*User, int) + func (s *MockOauth2Service) GetUserList() (*[]User, int) + func (s *MockOauth2Service) SearchClient(client *Client) (*[]Client, int) + func (s *MockOauth2Service) SearchUserList(clientID string) (*[]User, int) + func (s *MockOauth2Service) SetToken(token string) + func (s *MockOauth2Service) UpdateAllowedURI(au *AllowedURI) *AllowedURIResponse + func (s *MockOauth2Service) UpdateClient(client *Client) *ClientResponse + func (s *MockOauth2Service) UpdateUser(user UpdateUser) *UserResponse + type Oauth2Service struct + ClientID string + Host string + Log *lg.Logger + Proxy px.Proxy + Token string + UserHost string + func (a *Oauth2Service) AddAllowedURI(au *AllowedURI) *AllowedURIResponse + func (a *Oauth2Service) DeleteAllowedURI(id string) *AllowedURIResponse + func (a *Oauth2Service) GetAllowedURI(id string) (*AllowedURI, int) + func (a *Oauth2Service) GetAllowedURIList(clientID string) (*[]AllowedURI, int) + func (a *Oauth2Service) UpdateAllowedURI(au *AllowedURI) *AllowedURIResponse + func (c *Oauth2Service) AddClient(client *Client) *ClientResponse + func (c *Oauth2Service) DeleteClient(id string) *ClientResponse + func (c *Oauth2Service) GetClient(clientID string) (*Client, int) + func (c *Oauth2Service) GetClientList() (*[]Client, int) + func (c *Oauth2Service) SearchClient(client *Client) (*[]Client, int) + func (c *Oauth2Service) UpdateClient(client *Client) *ClientResponse + func (g *Oauth2Service) AddGrantType(rd *GrantType) *GrantTypeResponse + func (g *Oauth2Service) DeleteGrantType(id string) *GrantTypeResponse + func (g *Oauth2Service) GetGrantTypeList(clientID string) (*[]GrantType, int) + func (r *Oauth2Service) AddClientRole(cr *ClientRole) *ClientRoleResponse + func (r *Oauth2Service) AddRedirectURI(rd *RedirectURI) *RedirectURIResponse + func (r *Oauth2Service) AddRoleURI(ru *RoleURI) *RoleURIResponse + func (r *Oauth2Service) DeleteClientRole(id string) *ClientRoleResponse + func (r *Oauth2Service) DeleteRedirectURI(id string) *RedirectURIResponse + func (r *Oauth2Service) DeleteRoleURI(ru *RoleURI) *RoleURIResponse + func (r *Oauth2Service) GetClientRoleList(clientID string) (*[]ClientRole, int) + func (r *Oauth2Service) GetRedirectURIList(clientID string) (*[]RedirectURI, int) + func (r *Oauth2Service) GetRoleURIList(uID string) (*[]RoleURI, int) + func (s *Oauth2Service) GetNew() Service + func (s *Oauth2Service) SetToken(token string) + func (u *Oauth2Service) AddUser(user *User) *UserResponse + func (u *Oauth2Service) DeleteUser(username string, clientID string) *UserResponse + func (u *Oauth2Service) GetRoleList() (*[]Role, int) + func (u *Oauth2Service) GetUser(username string, clientID string) (*User, int) + func (u *Oauth2Service) GetUserList() (*[]User, int) + func (u *Oauth2Service) SearchUserList(clientID string) (*[]User, int) + func (u *Oauth2Service) UpdateUser(user UpdateUser) *UserResponse + type RedirectURI struct + ClientID int64 + ID int64 + URI string + type RedirectURIResponse struct + Code int + ID int64 + Success bool + type Role struct + ID int64 + Role string + type RoleURI struct + ClientAllowedURIID int64 + ClientRoleID int64 + type RoleURIResponse struct + Code int + Success bool + type Service interface + AddAllowedURI func(au *AllowedURI) *AllowedURIResponse + AddClient func(client *Client) *ClientResponse + AddClientRole func(cr *ClientRole) *ClientRoleResponse + AddGrantType func(rd *GrantType) *GrantTypeResponse + AddRedirectURI func(rd *RedirectURI) *RedirectURIResponse + AddRoleURI func(ru *RoleURI) *RoleURIResponse + AddUser func(user *User) *UserResponse + DeleteAllowedURI func(id string) *AllowedURIResponse + DeleteClient func(id string) *ClientResponse + DeleteClientRole func(id string) *ClientRoleResponse + DeleteGrantType func(id string) *GrantTypeResponse + DeleteRedirectURI func(id string) *RedirectURIResponse + DeleteRoleURI func(ru *RoleURI) *RoleURIResponse + DeleteUser func(username string, clientID string) *UserResponse + GetAllowedURI func(id string) (*AllowedURI, int) + GetAllowedURIList func(clientID string) (*[]AllowedURI, int) + GetClient func(clientID string) (*Client, int) + GetClientList func() (*[]Client, int) + GetClientRoleList func(clientID string) (*[]ClientRole, int) + GetGrantTypeList func(clientID string) (*[]GrantType, int) + GetRedirectURIList func(clientID string) (*[]RedirectURI, int) + GetRoleList func() (*[]Role, int) + GetRoleURIList func(uID string) (*[]RoleURI, int) + GetUser func(username string, clientID string) (*User, int) + GetUserList func() (*[]User, int) + SearchClient func(client *Client) (*[]Client, int) + SearchUserList func(clientID string) (*[]User, int) + SetToken func(token string) + UpdateAllowedURI func(au *AllowedURI) *AllowedURIResponse + UpdateClient func(client *Client) *ClientResponse + UpdateUser func(user UpdateUser) *UserResponse + type UpdateUser interface + GetType func() string + type User struct + ClientID int64 + EmailAddress string + Enabled bool + FirstName string + LastName string + Password string + RoleID int64 + Username string + type UserDis struct + ClientID int64 + Enabled bool + Username string + func (u *UserDis) GetType() string + type UserInfo struct + ClientID int64 + EmailAddress string + FirstName string + LastName string + RoleID int64 + Username string + func (u *UserInfo) GetType() string + type UserPW struct + ClientID int64 + Password string + Username string + func (u *UserPW) GetType() string + type UserResponse struct + Code int + Message string + Success bool