-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
Support individual keys in SDK #279
Conversation
Code Coverage Report
SwiftLint found issues
Generated by 🚫 Danger Swift against b20f100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally, we would write tests for this too to ensure nothing breaks in the future. Since you're now Indie, I guess you have time for that? ;-P I'm accepting to at least unblock you for now!
f5a69ea
to
b20f100
Compare
Good point, I will make sure I add some tests in a future PR 👍 |
Currently, the SDK only supports team keys, but the App Store Connect API offers the possibility of creating and using individual keys with the same permissions as the user to authenticate requests.
Individual keys do not have the
iss
field in the JWT's payload but they instead have asub
field: https://developer.apple.com/documentation/appstoreconnectapi/generating_tokens_for_api_requests#4313913. This PR makes backwards-compatible changes to allow developers to authenticate requests with an individual API key.