Skip to content

Adding TTL to AuthenticationOptions #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 1, 2024
Merged

Conversation

jrmccannon
Copy link
Contributor

@jrmccannon jrmccannon commented Feb 28, 2024

PAS-370

This adds TTL to the GenerateAuthenticationTokenAsync AuthenticationOptions record. It also adds an internal record that is used for the PasswordlessSerializerContext. This is because the API endpoint takes the TTL as an int of seconds. TimeSpan is a nicer way to define a segment of time, so I added the layer for ease of use.

Existing tests passed.

@jrmccannon jrmccannon requested a review from a team February 28, 2024 19:55
Copy link

codecov bot commented Feb 28, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 60.00%. Comparing base (769a423) to head (2db560f).

Files Patch % Lines
...ordless/Helpers/Extensions/FunctionalExtensions.cs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #121      +/-   ##
==========================================
- Coverage   60.19%   60.00%   -0.20%     
==========================================
  Files          41       42       +1     
  Lines         613      615       +2     
  Branches       53       54       +1     
==========================================
  Hits          369      369              
- Misses        239      240       +1     
- Partials        5        6       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jrmccannon jrmccannon marked this pull request as ready for review February 28, 2024 22:13
@jrmccannon jrmccannon changed the title Adding TTL to AuthentiationOptions Adding TTL to AuthenticationOptions Feb 29, 2024
@jrmccannon jrmccannon requested a review from a team February 29, 2024 13:39
@jrmccannon jrmccannon merged commit 6a01e85 into main Mar 1, 2024
@jrmccannon jrmccannon deleted the PAS370-add-ttl-to-mgat branch March 1, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants