-
Notifications
You must be signed in to change notification settings - Fork 27
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
Skip CreateSession if no policy is provided #598
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
6b0e615
to
4512e3c
Compare
4512e3c
to
7a106e7
Compare
7a106e7
to
674dd38
Compare
if (mode === LoginMode.Controller && policies.length > 0) { | ||
await controller.approve(origin, expiresAt, policies); | ||
} else { | ||
await doLogin(usernameField.value, credentialId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JunichiSugiura I made small change here to make login require webauthn authentication if no policies. Otherwise ppl can log into others account, any txn will fail but just feels weird.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #598 +/- ##
===========================================
+ Coverage 19.35% 30.47% +11.12%
===========================================
Files 3 34 +31
Lines 31 6438 +6407
Branches 7 0 -7
===========================================
+ Hits 6 1962 +1956
- Misses 25 4476 +4451 ☔ View full report in Codecov by Sentry. |
retry #592