Documentation ¶
Index ¶
- func AppleAuthorizeURL(redirectURI string, clientID string) string
- func GenerateAppleClientSecret(ctx context.Context, conf *config.Config) (*string, error)
- func WithAuthedUser(ctx context.Context, user *DelphisAuthedUser) context.Context
- type DelphisAccessToken
- type DelphisAuth
- type DelphisAuthedUser
- type DelphisRefreshToken
- type DelphisRefreshTokenUser
- type JWTClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppleAuthorizeURL ¶
func WithAuthedUser ¶
func WithAuthedUser(ctx context.Context, user *DelphisAuthedUser) context.Context
Types ¶
type DelphisAccessToken ¶
type DelphisAuth ¶
type DelphisAuth interface { NewAccessToken(userID string) (*DelphisAccessToken, error) NewRefreshToken(userID string) (*DelphisRefreshToken, error) ValidateAccessToken(ctx context.Context, token string) (*DelphisAuthedUser, error) ValidateRefreshToken(ctx context.Context, token string) (*DelphisRefreshTokenUser, error) }
func NewDelphisAuth ¶
func NewDelphisAuth(config *config.AuthConfig) DelphisAuth
type DelphisAuthedUser ¶
func GetAuthedUser ¶
func GetAuthedUser(ctx context.Context) *DelphisAuthedUser
type DelphisRefreshToken ¶
type DelphisRefreshTokenUser ¶
Click to show internal directories.
Click to hide internal directories.