apple

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTestEnvironment added in v1.0.0

func GetTestEnvironment(audienceKey string) (string, *httptest.Server, error)

Types

type AppleVerifier added in v1.0.0

type AppleVerifier struct {
	JwksAppleURI string
}

func NewAppleVerifier added in v1.0.0

func NewAppleVerifier() *AppleVerifier

func (*AppleVerifier) GetApplePublicKey added in v1.0.0

func (v *AppleVerifier) GetApplePublicKey(kid string) (*jwk.Key, error)

func (*AppleVerifier) VerifyAppleIdToken added in v1.0.0

func (v *AppleVerifier) VerifyAppleIdToken(token string, clientId string) (*VerifyTokenResponse, error)

type VerifyTokenResponse

type VerifyTokenResponse struct {
	Id    string `json:"id"`
	Email string `json:"email"`
}

Jump to

Keyboard shortcuts

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