Documentation
¶
Index ¶
- type Client
- func (client *Client) Authenticate(clientID goauth.AccountID, response goauth.IResponse) (bool, error)
- func (client *Client) BeginSession(clientID goauth.AccountID, adapter goauth.IAdapter) (goauth.ISession, error)
- func (client *Client) GetClientType() goauth.ClientType
- func (client *Client) GetKey(refreshToken string) string
- func (client *Client) RenewSession(refreshToken string) (goauth.ISession, error)
- func (client *Client) Verify(session goauth.ISession, response goauth.IResponse, adapter goauth.IAdapter) (bool, error)
- type JWTSession
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Authenticate ¶
func (client *Client) Authenticate(clientID goauth.AccountID, response goauth.IResponse) (bool, error)
the verify authentication for jwt is not nessasary.
func (*Client) BeginSession ¶
func (client *Client) BeginSession(clientID goauth.AccountID, adapter goauth.IAdapter) (goauth.ISession, error)
frontend request to begin a signin process.
func (*Client) GetClientType ¶
func (client *Client) GetClientType() goauth.ClientType
MARK: implement IAuthClient
func (*Client) RenewSession ¶
type JWTSession ¶
type JWTSession struct { JWT goauth.SessionID `json:"SessionID"` Identifier string `json:"Identifier"` }
func NewSession ¶
func NewSession(jwt goauth.SessionID, identifier string) *JWTSession
func (*JWTSession) GetClientAccountID ¶
func (session *JWTSession) GetClientAccountID() goauth.AccountID
func (*JWTSession) GetClientType ¶
func (session *JWTSession) GetClientType() goauth.ClientType
func (*JWTSession) GetSessionID ¶
func (session *JWTSession) GetSessionID() goauth.SessionID
Click to show internal directories.
Click to hide internal directories.