Skip to content

Commit 3669f29

Browse files
committed
fix tests
1 parent f8b644e commit 3669f29

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

test/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
44
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
55
PkgAuthentication = "4722fa14-9d28-45f9-a1e2-a38605bd88f0"
66
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
7+
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
78
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
89

910
[compat]

test/authserver.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ function response_handler(req)
4141
"user_name" => "firstname lastname",
4242
"user_email" => "[email protected]",
4343
"id_token" => "full-" * ID_TOKEN,
44+
"access_token" => "full-" * ID_TOKEN,
4445
"refresh_token" => refresh_token,
4546
"refresh_url" => "http://localhost:$(PORT)/auth/renew/token.toml/v2/",
4647
"expires_in" => EXPIRY,
@@ -87,6 +88,7 @@ function renew_handler(req)
8788
TOKEN[]["refresh_token"] = Random.randstring(10)
8889
TOKEN[]["expires_at"] = ceil(Int, time() + EXPIRY)
8990
TOKEN[]["id_token"] = "refresh-" * ID_TOKEN
91+
TOKEN[]["access_token"] = "refresh-" * ID_TOKEN
9092

9193
return HTTP.Response(200, sprint(TOML.print, TOKEN[]))
9294
end

0 commit comments

Comments
 (0)