Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
cffa395
Basic Apple provider
martincostello Jun 6, 2019
5c3d7cd
Implement Apple provider
martincostello Jun 8, 2019
f78fa43
Enable Sign In with Apple
martincostello Jun 8, 2019
7ba0afb
Update tests
martincostello Jun 8, 2019
7a24782
Enable token lifetime validation
martincostello Jun 8, 2019
c0fc31c
Add null annotations
martincostello Jun 9, 2019
cd8ed33
Improve exception handling
martincostello Jun 9, 2019
9bc3817
Extend integration tests
martincostello Jun 9, 2019
404730e
Move expiry period to options
martincostello Jun 9, 2019
8b11fe7
Add ClientSecretExpiresAfter validation
martincostello Jun 9, 2019
c7b2f74
Add tests for options validation
martincostello Jun 9, 2019
05a8102
Add unit tests for client secret
martincostello Jun 9, 2019
9948d08
Make KeyId required
martincostello Jun 9, 2019
5e72f38
Fix test
martincostello Jun 9, 2019
2d4794a
Fix Linux and macOS secret generation
martincostello Jun 9, 2019
13012dd
Add password option for pfx files
martincostello Jun 9, 2019
b9f329a
Fix flaky test
martincostello Jun 9, 2019
210fbf9
Add UsePrivateKey() method
martincostello Jun 9, 2019
94f1737
Bump System.IdentityModel.Tokens.Jwt
martincostello Jun 9, 2019
67dc9a3
Set response_mode to form_post
martincostello Sep 8, 2019
eae3d43
Use latest C# version
martincostello Sep 8, 2019
4a93eb6
Retrieve user details after sign-in
martincostello Sep 8, 2019
74f607a
Update branding
martincostello Sep 15, 2019
dbbf2db
Access events via options
martincostello Sep 15, 2019
785a01a
Resolve logging TODO
martincostello Sep 15, 2019
eb5ccfd
Comment out Apple option
martincostello Sep 20, 2019
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
Prev Previous commit
Next Next commit
Fix flaky test
Fix flaky test by setting the expiry to 2 seconds to eliminate rounding issues.
  • Loading branch information
martincostello committed Sep 8, 2019
commit b9f329a0012ea592e7ca88a0784af6d3e738a7f3
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static async Task GenerateAsync_Caches_Jwt_Until_Expired()
var options = new AppleAuthenticationOptions()
{
ClientId = "my-client-id",
ClientSecretExpiresAfter = TimeSpan.FromSeconds(1),
ClientSecretExpiresAfter = TimeSpan.FromSeconds(2),
KeyId = "my-key-id",
TeamId = "my-team-id",
PrivateKeyBytes = (keyId) => TestKeys.GetPrivateKeyBytesAsync(),
Expand All @@ -93,7 +93,7 @@ await GenerateTokenAsync(options, async (generator, context) =>
token2.ShouldBe(token1);

// Act
await Task.Delay(TimeSpan.FromSeconds(3));
await Task.Delay(options.ClientSecretExpiresAfter.Add(options.ClientSecretExpiresAfter));
string token3 = await generator.GenerateAsync(context);

// Assert
Expand Down