Skip to content
This repository was archived by the owner on Oct 28, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
- os: ubuntu-24.04
pair:
elixir: '1.10.x'
otp: '21.x'
- os: ubuntu-22.04
elixir: '1.17.x'
otp: '27.x'
- os: ubuntu-26.04
pair:
elixir: '1.14.x'
otp: '25.x'
elixir: '1.20.x'
otp: '29.x'
lint: lint
runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v7

- name: Setup Erlang and Elixir
uses: erlef/setup-beam@v1
Expand All @@ -37,7 +37,7 @@ jobs:
elixir-version: ${{matrix.pair.elixir}}

- name: Fetch Hex Cache
uses: actions/cache@v3
uses: actions/cache@v6
id: hex-cache
with:
path: |
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### v0.7.0 (2026-07-14)

- **Breaking**: Require Elixir 1.17 and OTP 27.
This change occurs due to requiring non-vulnerable versions of HTTPoison and its sub-dependency, Hackney.
- **Breaking**: Require `httpoison ~> 3.0`
- **Chore**: Exchange `mock` for `mimic` in tests.

### v0.6.2 (2026-07-13)

This release provides a minimal update path to address [an advisory](https://github.com/ueberauth/ueberauth_apple/security/advisories/GHSA-pxx8-68pc-p9mr).
Please see `v0.7.0` for additional updates related to vulnerable dependencies.

- **Security**: Validate `iss`, `aud`, `iat`, and `exp` claims on callback `id_token` after signature verification.
Callback authentication now fails closed if the expected `client_id` audience cannot be determined.
Client ID configuration was already required, so this should not break existing implementations.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def deps do
[
# ...
{:ueberauth, "~> 0.10"},
{:ueberauth_apple, "~> 0.6.2"}
{:ueberauth_apple, "~> 0.7.0"}
]
end
```
Expand Down
2 changes: 1 addition & 1 deletion guides/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def deps do
[
# ...
{:ueberauth, "~> 0.10"},
{:ueberauth_apple, "~> 0.6.2"},
{:ueberauth_apple, "~> 0.7.0"},
]
end
```
Expand Down
14 changes: 7 additions & 7 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule UeberauthApple.Mixfile do
use Mix.Project

@version "0.6.2"
@version "0.7.0"
@url "https://github.com/ueberauth/ueberauth_apple"

def project do
Expand All @@ -10,7 +10,7 @@ defmodule UeberauthApple.Mixfile do
version: @version,
name: "Ueberauth Apple Strategy",
package: package(),
elixir: "~> 1.10",
elixir: "~> 1.17",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
Expand All @@ -23,17 +23,17 @@ defmodule UeberauthApple.Mixfile do
end

def application do
[applications: [:httpoison, :jose, :logger, :oauth2, :ueberauth]]
[extra_applications: [:logger]]
end

defp deps do
[
{:credo, "~> 1.6", only: [:dev, :test]},
{:earmark, ">= 0.0.0", only: :dev},
{:ex_doc, "~> 0.3", only: :dev},
{:httpoison, "~> 1.0 or ~> 2.0"},
{:ex_doc, "~> 0.40", only: :dev},
{:httpoison, "~> 3.0"},
{:jose, "~> 1.0"},
{:mock, "~> 0.3.0", only: :test},
{:makeup_html, ">= 0.0.0", only: :dev, runtime: false},
{:mimic, "~> 2.3.0", only: :test},
{:oauth2, "~> 2.0"},
{:ueberauth, "~> 0.10"}
]
Expand Down
60 changes: 31 additions & 29 deletions mix.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions test/test_helper.exs
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Mimic.copy(OAuth2.Client)

ExUnit.start()
40 changes: 19 additions & 21 deletions test/ueberauth/strategy/apple_test.exs
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
defmodule Ueberauth.Strategy.AppleTest do
use ExUnit.Case, async: false
use Mimic
import Plug.Conn
import Plug.Test
import Mock

alias Ueberauth.Strategy.Apple

setup_with_mocks([
{OAuth2.Client, [:passthrough],
[
get_token: fn _client, _params ->
{:ok,
%OAuth2.Client{
token: %OAuth2.AccessToken{
access_token: "access-abc123",
expires_at: 1_662_751_328,
other_params: %{
"id_token" => "token-abc123"
},
refresh_token: "refresh-abc123",
token_type: "Bearer"
}
}}
end
]}
]) do
%{}
setup do
OAuth2.Client
|> stub(:get_token, fn _client, _params ->
{:ok,
%OAuth2.Client{
token: %OAuth2.AccessToken{
access_token: "access-abc123",
expires_at: 1_662_751_328,
other_params: %{
"id_token" => "token-abc123"
},
refresh_token: "refresh-abc123",
token_type: "Bearer"
}
}}
end)

:ok
end

describe "handle_request!/1" do
Expand Down