StanfordSpezi / SpeziTemplateApplication

Template application demonstrating the usage of the Stanford Spezi framework.
https://stanfordspezi.github.io/SpeziTemplateApplication
MIT License
97 stars 19 forks source link

Support for Single-Sign-On Provider #45

Closed Supereg closed 10 months ago

Supereg commented 10 months ago

Support for Single-Sign-On Provider

:recycle: Current situation & Problem

Currently, we only support an E-Mail-Password-based authentication. SpeziAccount and SpeziFirebase just recently added support for Sign in with Apple. This PR incorporates those updated libraries.

:gear: Release Notes

:books: Documentation

--

:white_check_mark: Testing

Similar to SpeziFirebase, we do not test Sign in with Apple in the Simulator directly as this cannot really be reliably achieved. Current test cases cover all the other changes made in this PR.

:pencil: Code of Conduct & Contributing Guidelines

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

codecov[bot] commented 10 months ago

Codecov Report

Merging #45 (2971236) into main (cf19568) will decrease coverage by 0.69%. The diff coverage is 96.37%.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/45/graphs/tree.svg?width=650&height=150&src=pr&token=6EPKiz2l15&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi)](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/45?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) ```diff @@ Coverage Diff @@ ## main #45 +/- ## ========================================== - Coverage 82.49% 81.80% -0.69% ========================================== Files 36 35 -1 Lines 988 978 -10 ========================================== - Hits 815 800 -15 - Misses 173 178 +5 ``` | [Files](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/45?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) | Coverage Δ | | |---|---|---| | [...mplateApplication/Account/AccountSetupHeader.swift](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/45?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-VGVtcGxhdGVBcHBsaWNhdGlvbi9BY2NvdW50L0FjY291bnRTZXR1cEhlYWRlci5zd2lmdA==) | `100.00% <100.00%> (ø)` | | | [TemplateApplication/Account/AccountSheet.swift](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/45?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-VGVtcGxhdGVBcHBsaWNhdGlvbi9BY2NvdW50L0FjY291bnRTaGVldC5zd2lmdA==) | `84.91% <100.00%> (+3.09%)` | :arrow_up: | | [TemplateApplication/Home.swift](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/45?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-VGVtcGxhdGVBcHBsaWNhdGlvbi9Ib21lLnN3aWZ0) | `100.00% <100.00%> (ø)` | | | [...lateApplication/Onboarding/AccountOnboarding.swift](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/45?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-VGVtcGxhdGVBcHBsaWNhdGlvbi9PbmJvYXJkaW5nL0FjY291bnRPbmJvYXJkaW5nLnN3aWZ0) | `88.89% <100.00%> (-11.11%)` | :arrow_down: | | [TemplateApplication/TemplateApplication.swift](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/45?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-VGVtcGxhdGVBcHBsaWNhdGlvbi9UZW1wbGF0ZUFwcGxpY2F0aW9uLnN3aWZ0) | `100.00% <100.00%> (ø)` | | | [...plateApplication/TemplateApplicationStandard.swift](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/45?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-VGVtcGxhdGVBcHBsaWNhdGlvbi9UZW1wbGF0ZUFwcGxpY2F0aW9uU3RhbmRhcmQuc3dpZnQ=) | `51.64% <100.00%> (+0.40%)` | :arrow_up: | | [TemplateApplication/TemplateAppDelegate.swift](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/45?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi#diff-VGVtcGxhdGVBcHBsaWNhdGlvbi9UZW1wbGF0ZUFwcERlbGVnYXRlLnN3aWZ0) | `96.16% <80.00%> (-1.67%)` | :arrow_down: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/45/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/45?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/45?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi). Last update [cf19568...2971236](https://app.codecov.io/gh/StanfordSpezi/SpeziTemplateApplication/pull/45?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=StanfordSpezi).