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

Update authentication flow #89

Closed
wants to merge 5 commits into from

Conversation

pauljohanneskraft
Copy link
Contributor

@pauljohanneskraft pauljohanneskraft commented Sep 5, 2024

Update authentication flow

♻️ Current situation & Problem

Due to blocking functions not being called during the invitation flow, we changed the invitation flow to contain the following steps:

  1. Create a user
  2. Call the "enrollUser" function with an invitation code

While you have the permission to read the Firestore object at /users/$userId$ right after creating the account, it won't exist until enrolling in the study.

⚙️ Release Notes

Add a bullet point list summary of the feature and possible migration guides if this is a breaking change so this section can be added to the release notes.
Include code snippets that provide examples of the feature implemented or links to the documentation if it appends or changes the public interface.

📚 Documentation

Please ensure that you properly document any additions in conformance to Spezi Documentation Guide.
You can use this section to describe your solution, but we encourage contributors to document your reasoning and changes using in-line documentation.

✅ Testing

Please ensure that the PR meets the testing requirements set by CodeCov and that new functionality is appropriately tested.
This section describes important information about the tests and why some elements might not be testable.

Code of Conduct & Contributing Guidelines

By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

@pauljohanneskraft pauljohanneskraft changed the title Update InvitationCode to include call to setupUser Update authentication flow Sep 12, 2024
@pauljohanneskraft
Copy link
Contributor Author

pauljohanneskraft commented Sep 12, 2024

This PR is currently blocked by the following PRs:

After they have been merged, we can release respective versions and then specify them in ENGAGE-HF-iOS.

@pauljohanneskraft pauljohanneskraft self-assigned this Sep 12, 2024
@pauljohanneskraft pauljohanneskraft added the enhancement New feature or request label Sep 12, 2024
@pauljohanneskraft pauljohanneskraft linked an issue Sep 12, 2024 that may be closed by this pull request
1 task
@pauljohanneskraft
Copy link
Contributor Author

Superseded by #92

pauljohanneskraft added a commit that referenced this pull request Sep 16, 2024
# New Auth Flow with Firebase Functions Submodule

## ♻️ Current situation & Problem
Combines #86 with #89 to hopefully resolve issues faster.


## ⚙️ Release Notes 
*Add a bullet point list summary of the feature and possible migration
guides if this is a breaking change so this section can be added to the
release notes.*
*Include code snippets that provide examples of the feature implemented
or links to the documentation if it appends or changes the public
interface.*


## 📚 Documentation
*Please ensure that you properly document any additions in conformance
to [Spezi Documentation
Guide](https://github.com/StanfordSpezi/.github/blob/main/DOCUMENTATIONGUIDE.md).*
*You can use this section to describe your solution, but we encourage
contributors to document your reasoning and changes using in-line
documentation.*


## ✅ Testing
*Please ensure that the PR meets the testing requirements set by CodeCov
and that new functionality is appropriately tested.*
*This section describes important information about the tests and why
some elements might not be testable.*


### Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md).

---------

Co-authored-by: Andreas Bauer <andreas.bauer@stanford.edu>
Co-authored-by: nriedman <108841122+nriedman@users.noreply.github.com>
@pauljohanneskraft pauljohanneskraft deleted the feature/new-auth-flow branch September 17, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Use SpeziAccount @AccountKey macro to store user meta data
1 participant