indygreg / apple-platform-rs

Rust crates supporting Apple platform development
591 stars 49 forks source link

Add support for user/password in apple notarizations #23

Open austinsasko opened 2 years ago

austinsasko commented 2 years ago

Apple's notary tool supports username/password authentication for notarization, ideally the code signing notarization functionality this library provides would have a level of parity for that.

indygreg commented 2 years ago

This is a reasonable feature request. The current code for sending App Store Connect HTTP requests is somewhat generic and should be easy to extend with alternative authentication mechanisms.

However, the notarization API uses App Store Connect and AFAICT Apple doesn't document how to convert a username/password into an authentication token. See the docs at e.g. https://developer.apple.com/documentation/appstoreconnectapi/creating_api_keys_for_app_store_connect_api.

So we'll need to figure out how to exchange a username/password for an auth token before we can have password based auth. Please leave a comment if you know how to do this!