Documentation ¶
Index ¶
- Constants
- Variables
- func GetOriginRequestUrl(request *http.Request) string
- type AccessToken
- type LogtoClient
- func (logtoClient *LogtoClient) FetchUserInfo() (core.UserInfoResponse, error)
- func (logtoClient *LogtoClient) GetAccessToken(resource string) (AccessToken, error)
- func (LogtoClient *LogtoClient) GetIdToken() string
- func (logtoClient *LogtoClient) GetIdTokenClaims() (core.IdTokenClaims, error)
- func (logtoClient *LogtoClient) GetOrganizationToken(organizationId string) (AccessToken, error)
- func (logtoClient *LogtoClient) GetOrganizationTokenClaims(organizationId string) (core.OrganizationAccessTokenClaims, error)
- func (logtoClient *LogtoClient) GetRefreshToken() string
- func (logtoClient *LogtoClient) HandleSignInCallback(request *http.Request) error
- func (logtoClient *LogtoClient) IsAuthenticated() bool
- func (logtoClient *LogtoClient) SaveAccessToken(key string, accessToken AccessToken)
- func (logtoClient *LogtoClient) SetIdToken(idToken string)
- func (logtoClient *LogtoClient) SetRefreshToken(refreshToken string)
- func (logtoClient *LogtoClient) SignIn(redirectUri string) (string, error)
- func (logtoClient *LogtoClient) SignOut(postLogoutRedirectUri string) (string, error)
- type LogtoConfig
- type SignInSession
- type Storage
Constants ¶
View Source
const ( StorageKeySignInSession = "logto_sign_in_session" StorageKeyRefreshToken = "logto_refresh_token" StorageKeyIdToken = "logto_id_token" StorageKeyAccessTokenMap = "logto_access_token_map" )
Variables ¶
Functions ¶
func GetOriginRequestUrl ¶
Types ¶
type AccessToken ¶
type LogtoClient ¶
type LogtoClient struct {
// contains filtered or unexported fields
}
func NewLogtoClient ¶
func NewLogtoClient(config *LogtoConfig, storage Storage) *LogtoClient
func (*LogtoClient) FetchUserInfo ¶
func (logtoClient *LogtoClient) FetchUserInfo() (core.UserInfoResponse, error)
func (*LogtoClient) GetAccessToken ¶
func (logtoClient *LogtoClient) GetAccessToken(resource string) (AccessToken, error)
func (*LogtoClient) GetIdToken ¶
func (LogtoClient *LogtoClient) GetIdToken() string
func (*LogtoClient) GetIdTokenClaims ¶
func (logtoClient *LogtoClient) GetIdTokenClaims() (core.IdTokenClaims, error)
func (*LogtoClient) GetOrganizationToken ¶
func (logtoClient *LogtoClient) GetOrganizationToken(organizationId string) (AccessToken, error)
func (*LogtoClient) GetOrganizationTokenClaims ¶
func (logtoClient *LogtoClient) GetOrganizationTokenClaims(organizationId string) (core.OrganizationAccessTokenClaims, error)
func (*LogtoClient) GetRefreshToken ¶
func (logtoClient *LogtoClient) GetRefreshToken() string
func (*LogtoClient) HandleSignInCallback ¶
func (logtoClient *LogtoClient) HandleSignInCallback(request *http.Request) error
func (*LogtoClient) IsAuthenticated ¶
func (logtoClient *LogtoClient) IsAuthenticated() bool
func (*LogtoClient) SaveAccessToken ¶
func (logtoClient *LogtoClient) SaveAccessToken(key string, accessToken AccessToken)
func (*LogtoClient) SetIdToken ¶
func (logtoClient *LogtoClient) SetIdToken(idToken string)
func (*LogtoClient) SetRefreshToken ¶
func (logtoClient *LogtoClient) SetRefreshToken(refreshToken string)
type LogtoConfig ¶
type SignInSession ¶
Click to show internal directories.
Click to hide internal directories.