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

iOS License App Check - Restrict API access #48

Open
simone opened this issue Nov 7, 2019 · 1 comment
Open

iOS License App Check - Restrict API access #48

simone opened this issue Nov 7, 2019 · 1 comment

Comments

@simone
Copy link

simone commented Nov 7, 2019

Io order to restrict the API access only to our iOS app, we should implement the server side license verification. The process is described here:
https://developer.apple.com/library/archive/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateLocally.html
https://developer.apple.com/library/archive/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateRemotely.html

Here a iOS security guide:
https://www.apple.com/business/docs/site/iOS_Security_Guide.pdf

The task has 2 phases:

Fetch the License information from the Apple Store (if the user has effectively downloaded our app from the store by the mobile app.
implement a simple backend (Kotlin or Java) call to verify the license on the apple store.

Open questions:
Can a third-party app asks to the store the license information of our app?
Can we detect server site that the license sent by the "app" (of a fake app) is strictly connected to the device that is sending the request?

Note:
The Native API call should be integrated with flutter
https://flutter.dev/docs/development/platform-integration/platform-channels

@simone simone changed the title iOS License App Check - Restrict AP access iOS License App Check - Restrict API access Nov 7, 2019
@simone
Copy link
Author

simone commented Nov 29, 2019

We have to investigate if the device check is enough for our purposes
g123k/flutter_safetynet_attestation#1 (comment)

https://pub.dartlang.org/packages/ios_device_check

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

No branches or pull requests

1 participant