View Source Ueberauth.Strategy.Apple.Token (Ueberauth Apple Strategy v0.6.1)

Provides helpers for working with Apple-generated tokens.

Apple provides a public list of keys that may be used for token signing at https://appleid.apple.com/auth/keys.

Link to this section Summary

Types

Public Key used by Apple to sign ID Tokens

t()

ID Token supplied by the Apple Auth API

Functions

Decode an ID Token provided by the Apple Auth API.

Link to this section Types

@type public_key() :: map()

Public Key used by Apple to sign ID Tokens

@type t() :: String.t()

ID Token supplied by the Apple Auth API

Link to this section Functions

Link to this function

payload(id_token, opts \\ [])

View Source
@spec payload(
  t(),
  keyword()
) :: {:ok, map()} | {:error, term()}

Decode an ID Token provided by the Apple Auth API.

options

Options

  • :public_keys: {Module, :function, args} to call in order to get a list of public keys. The returned data must be in the form {:ok, keys} where keys is a list of maps matching the structure found at https://appleid.apple.com/auth/keys. Defaults to a function that uses HTTPoison to request the keys on every call.