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

feat(shorebird_cli): shorebird login verifies user #297

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

felangel
Copy link
Contributor

Description

  • feat(shorebird_cli): shorebird login verifies user

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@felangel felangel requested review from eseidel and bryanoltman April 17, 2023 16:54
@felangel felangel self-assigned this Apr 17, 2023
@@ -170,19 +180,15 @@ class Auth {
}

extension on oauth2.AccessCredentials {
String get email {
String? get email {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't have the context to know, but should be be obscuring the fact that this is an email here? e.g. just treating it like an opaque identifier?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is currently used to extract the email from the claims so that we can include the user's email in the output of commands like shorebird account or shorebird login (when they're already logged in). This code will have to be refactored once we support multiple OAuth providers 👍

@felangel felangel merged commit ac58a06 into main Apr 17, 2023
@felangel felangel deleted the feat/shorebird-cli-auth-verifies-user branch April 17, 2023 17:17
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