apple

package
v0.0.0-...-29f350e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const APPLE_BASE_URL = "https://appleid.apple.com"
View Source
const AuthType = "apple"

AuthType value for apple

Variables

This section is empty.

Functions

This section is empty.

Types

type AppleKey

type AppleKey struct {
	Kty string `json:"kty"`
	Kid string `json:"kid"`
	Use string `json:"use"`
	Alg string `json:"alg"`
	N   string `json:"n"`
	E   string `json:"e"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(baseURL string) *Client

type JWTTokenBody

type JWTTokenBody struct {
	Iss            string `json:"iss"`
	Iat            int64  `json:"iat"`
	Exp            int64  `json:"exp"`
	Aud            string `json:"aud"`
	Sub            string `json:"sub"`
	AtHash         string `json:"at_hash"`
	Email          string `json:"email"`
	EmailVerified  string `json:"email_verified"`
	IsPrivateEmail string `json:"is_private_email"`
	RealUserStatus int64  `json:"real_user_status"`
	AuthTime       int64  `json:"auth_time"`
	Nonce          string `json:"nonce"`
}

type JWTTokenHeader

type JWTTokenHeader struct {
	Alg string `json:"alg"`
	Kid string `json:"kid"`
}

type LoginHandler

type LoginHandler struct {
	Conf          configs.Apple
	MemberService service.MemberService
	TokenService  service.TokenService
}

func (LoginHandler) Handle

func (a LoginHandler) Handle(authorizationCode string, identityToken string) gin.HandlerFunc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL