Skip to content
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

make jti and aud required fields, since they are primary keys #121

Merged
merged 1 commit into from
Feb 1, 2021

Conversation

Hanspagh
Copy link
Contributor

@Hanspagh Hanspagh commented Feb 1, 2021

After seeing #120 I released we have to test that actually hit this case. So I decided to clean up the token module a bit up. I have changed jti and aud to be required fields since they are already primary keys and the insert actually hard fails if they are missing. Now we til hit our token_storage_failure. Let me know what you think

@Hanspagh Hanspagh requested a review from a team February 1, 2021 12:53
@yordis
Copy link
Member

yordis commented Feb 1, 2021

Run mix format to make CI to pass

@yordis yordis self-requested a review February 1, 2021 17:23
doomspork
doomspork previously approved these changes Feb 1, 2021
@Hanspagh
Copy link
Contributor Author

Hanspagh commented Feb 1, 2021

Sorry for that, should be done now

@doomspork
Copy link
Member

@Hanspagh can you rebase on master now that Github actions are in that branch?

@codecov-io
Copy link

codecov-io commented Feb 1, 2021

Codecov Report

Merging #121 (7f292b1) into master (57bc0fe) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #121   +/-   ##
=======================================
  Coverage   81.25%   81.25%           
=======================================
  Files           5        5           
  Lines          64       64           
=======================================
  Hits           52       52           
  Misses         12       12           
Impacted Files Coverage Δ
lib/guardian/db/token.ex 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 57bc0fe...7f292b1. Read the comment docs.

Copy link
Member

@yordis yordis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@yordis yordis merged commit 72b2799 into master Feb 1, 2021
@yordis yordis deleted the test-db-failing branch February 1, 2021 23:18
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.

4 participants