Automattic / Gravatar-SDK-iOS

Gravatar SDK is a Swift library that allows you to integrate Gravatar features into your own iOS applications.
https://gravatar.com
Mozilla Public License 2.0
52 stars 5 forks source link

Check if the correct user is authorized during OAuth #427

Closed pinarol closed 2 months ago

pinarol commented 2 months ago

Closes #370

Description

Calls /v3/me/associated-email to check if the correct user is authenticated right after oauth. Displays an error message otherwise:

Testing Steps

SwiftUI Demo app > Profile editor with oauth Login with email A first Then enter a different email in the SwiftUI app and enter the OAuth flow Tap "Approve" (since the browser remembers your previous login)

wpmobilebot commented 2 months ago
Gravatar SwiftUI Prototype Build📲 You can test the changes from this Pull Request in Gravatar SwiftUI Prototype Build by scanning the QR code below to install the corresponding build.
App NameGravatar SwiftUI Prototype Build Gravatar SwiftUI Prototype Build
Build Number1314
Version1.0
Bundle IDcom.automattic.gravatar-sdk-demo-swiftui.prototype-build
Commit1001bc328f178558917fa5fe5e1c3dc6cddb2aba
App Center BuildGravatar SDK Demo - SwiftUI #163
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.
wpmobilebot commented 2 months ago
Gravatar UIKit Prototype Build📲 You can test the changes from this Pull Request in Gravatar UIKit Prototype Build by scanning the QR code below to install the corresponding build.
App NameGravatar UIKit Prototype Build Gravatar UIKit Prototype Build
Build Number1314
Version1.0
Bundle IDcom.automattic.gravatar-sdk-demo-uikit.prototype-build
Commit1001bc328f178558917fa5fe5e1c3dc6cddb2aba
App Center BuildGravatar SDK Demo - UIKit #164
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.