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

Skip CreateSession if no policy is provided #598

Merged
merged 6 commits into from
Aug 20, 2024
Merged

Conversation

JunichiSugiura
Copy link
Collaborator

@JunichiSugiura JunichiSugiura commented Aug 20, 2024

retry #592

Copy link

vercel bot commented Aug 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
cartridge-starknet-react-next ✅ Ready (Inspect) Visit Preview Aug 20, 2024 9:05pm
docs ✅ Ready (Inspect) Visit Preview Aug 20, 2024 9:05pm
keychain ✅ Ready (Inspect) Visit Preview Aug 20, 2024 9:05pm
ui ✅ Ready (Inspect) Visit Preview Aug 20, 2024 9:05pm
ui-next ✅ Ready (Inspect) Visit Preview Aug 20, 2024 9:05pm

@JunichiSugiura JunichiSugiura requested a review from broody August 20, 2024 16:10
@JunichiSugiura JunichiSugiura force-pushed the fix(keychain)/no-policy branch from 6b0e615 to 4512e3c Compare August 20, 2024 16:11
@JunichiSugiura JunichiSugiura marked this pull request as ready for review August 20, 2024 16:11
@JunichiSugiura JunichiSugiura force-pushed the fix(keychain)/no-policy branch from 4512e3c to 7a106e7 Compare August 20, 2024 16:15
if (mode === LoginMode.Controller && policies.length > 0) {
await controller.approve(origin, expiresAt, policies);
} else {
await doLogin(usernameField.value, credentialId);
Copy link
Contributor

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.

@broody broody merged commit 2482164 into main Aug 20, 2024
13 checks passed
@broody broody deleted the fix(keychain)/no-policy branch August 20, 2024 21:09
Copy link

codecov bot commented Aug 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 30.47%. Comparing base (679bdca) to head (3a7c296).
Report is 22 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

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