Giter Site home page Giter Site logo

appstoreapijwtgenerator's Introduction

AppStoreApiJWTGenerator

Generate Token for App Store Connect API Requests

About

In order to use the App Store Connect API you need to generate a JWT token. The docs explain how the token shall be generated in Generating Tokens for API Requests.

However, the actual command to create such a token in the end is missing. Instead the docs state something like go to jwt.io and there are tools to generate JWT tokens. There I found a library from IBM written in Swift.

So I went ahead and created this simple command line tool to generate JWT tokens suitable for the App Store Connect API. The rest was a bit try and error and checking out the brandnew ArgumentParser library :-)

Usage

astokengenerator --key-id <key-id> --issuer-id <issuer-id> --path-to-private-key <path-to-private-key>
  • key-id = Your private key ID from App Store Connect (Ex: 2X9R4HXF34)
  • issuer-id = Your issuer ID from the API Keys page in App Store Connect (Ex: 57246542-96fe-1a63-e053-0824d011072a)
  • path-to-private-key = The path to the private key in .p8 format

Dependencies

appstoreapijwtgenerator's People

Contributors

a7ex avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.