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

Fix security schema in API design #963

Merged
merged 1 commit into from
Jun 13, 2024
Merged

Conversation

jraddaoui
Copy link
Collaborator

Use Goa's JWTSecurity, the API is only verifying the token against the OIDC provider, it's not actually doing the authentication flow.

Refs #957.

@jraddaoui jraddaoui force-pushed the dev/issue-957-goa-security branch from c2fa3d3 to 3f32335 Compare June 11, 2024 19:00
@jraddaoui jraddaoui requested review from djjuhasz and sbreker June 11, 2024 19:01
@jraddaoui jraddaoui self-assigned this Jun 11, 2024
Copy link

codecov bot commented Jun 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.34%. Comparing base (4ce83bb) to head (9307884).
Report is 43 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #963      +/-   ##
==========================================
+ Coverage   51.31%   51.34%   +0.03%     
==========================================
  Files         102      102              
  Lines        5679     5679              
==========================================
+ Hits         2914     2916       +2     
+ Misses       2521     2520       -1     
+ Partials      244      243       -1     

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

Use Goa's JWTSecurity, the API is only verifying the token against the
OIDC provider, it's not actually doing the authentication flow.
@jraddaoui jraddaoui force-pushed the dev/issue-957-goa-security branch from 3f32335 to 9307884 Compare June 12, 2024 09:24
Copy link
Collaborator

@djjuhasz djjuhasz left a comment

Choose a reason for hiding this comment

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

Mostly LGTM - I just noticed one of the re-generated files added spurious whitespace. It's not a blocker, but it would be nice to remove the whitespace.

@jraddaoui jraddaoui merged commit 9307884 into main Jun 13, 2024
15 checks passed
@jraddaoui jraddaoui deleted the dev/issue-957-goa-security branch June 13, 2024 09: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.

2 participants