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: use correct names in WebAuthN dialogs #3215

Merged
merged 5 commits into from
Apr 6, 2023

Conversation

jonas-jonas
Copy link
Member

Fixes #3110

Related issue(s)

Checklist

  • I have read the contributing guidelines.
  • I have referenced an issue containing the design document if my change
    introduces a new feature.
  • I am following the
    contributing code guidelines.
  • I have read the security policy.
  • I confirm that this pull request does not address a security
    vulnerability. If this pull request addresses a security vulnerability, I
    confirm that I got the approval (please contact
    [email protected]) from the maintainers to push
    the changes.
  • I have added tests that prove my fix is effective or that my feature
    works.
  • I have added or changed the documentation.

Further Comments

@jonas-jonas jonas-jonas self-assigned this Apr 5, 2023
@jonas-jonas
Copy link
Member Author

Not really sure how we can test this properly. If you have an idea, let me know.


kratos-selfservice-ui-node:
environment:
- KRATOS_BROWSER_URL=http://localhost:4433/
Copy link
Member Author

Choose a reason for hiding this comment

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

This overrides the variable from the standalone quickstart with localhost instead of the local IP. WebAuthN only works on domains, not IPs so this is important to get this to work.

@codecov
Copy link

codecov bot commented Apr 5, 2023

Codecov Report

Merging #3215 (8f94a20) into master (0a05d99) will decrease coverage by 0.01%.
The diff coverage is 93.33%.

❗ Current head 8f94a20 differs from pull request most recent head 33b8e22. Consider uploading reports for the commit 33b8e22 to get more accurate results

@@            Coverage Diff             @@
##           master    #3215      +/-   ##
==========================================
- Coverage   77.89%   77.88%   -0.01%     
==========================================
  Files         320      320              
  Lines       20451    20451              
==========================================
- Hits        15931    15929       -2     
- Misses       3317     3318       +1     
- Partials     1203     1204       +1     
Impacted Files Coverage Δ
selfservice/strategy/webauthn/strategy.go 93.10% <ø> (+4.53%) ⬆️
selfservice/strategy/webauthn/settings.go 65.26% <80.00%> (ø)
selfservice/strategy/webauthn/registration.go 66.31% <83.33%> (+0.35%) ⬆️
selfservice/strategy/webauthn/login.go 62.50% <100.00%> (ø)
selfservice/strategy/webauthn/user.go 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -356,12 +356,12 @@ func (s *Strategy) PopulateSettingsMethod(r *http.Request, id *identity.Identity
}
}

web, err := s.newWebAuthn(r.Context())
web, err := webauthn.New(s.d.Config().WebAuthnConfig(r.Context()))
if err != nil {
return err
Copy link
Member

Choose a reason for hiding this comment

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

Since webauthn.New probably doesn't return errors with stack traces, it would be difficult to find the error if it happened here. So please make sure to wrap them:

return errors.WithStack(err)

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, makes sense. Done.

@aeneasr aeneasr merged commit 3bc1ff0 into master Apr 6, 2023
@aeneasr aeneasr deleted the jonas-jonas/useCorrectValuesInWebAuthn branch April 6, 2023 09:46
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.

Webauthn default user data for settings flow
2 participants