All Projects → pelauimagineering → Apple Music Token Generator

pelauimagineering / Apple Music Token Generator

Licence: mit

Programming Languages

python
139335 projects - #7 most used programming language
ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Apple Music Token Generator

Spring Examples
SpringBoot Examples
Stars: ✭ 67 (-67.79%)
Mutual labels:  jwt-token
Httpie Jwt Auth
JWTAuth (JSON Web Tokens) auth plugin for HTTPie
Stars: ✭ 140 (-32.69%)
Mutual labels:  jwt-token
Vue.netcore
.NetCore+Vue2/Vue3+Element plus,前后端分离,不一样的快速开发框架;提供Vue2、Vue3版本,。http://www.volcore.xyz/
Stars: ✭ 2,338 (+1024.04%)
Mutual labels:  jwt-token
Laravel Vue Starter
Well Documented Laravel Starter App From Development to Production. For Full Blown RESTFUL API and SPA with Beautiful UI Using Buefy / ElementUi For Reusable Vue Components
Stars: ✭ 76 (-63.46%)
Mutual labels:  jwt-token
Laravel Api Boilerplate
A Boilerplate Project For Laravel API's (NOT MAINTAINED)
Stars: ✭ 113 (-45.67%)
Mutual labels:  jwt-token
Node Express Mongoose Passport Jwt Rest Api Auth
Node, express, mongoose, passport and JWT REST API authentication example
Stars: ✭ 146 (-29.81%)
Mutual labels:  jwt-token
Laravel Jwt
Laravel with JWT Authentication for API development
Stars: ✭ 31 (-85.1%)
Mutual labels:  jwt-token
Firebase Esp32
ESP32 Firebase RTDB Arduino Library
Stars: ✭ 204 (-1.92%)
Mutual labels:  jwt-token
Zeus
Stars: ✭ 117 (-43.75%)
Mutual labels:  jwt-token
Hltool
Go 开发常用工具库, Google2步验证客户端,AES加密解密,RSA加密解密,钉钉机器人,邮件发送,JWT生成解析,Log,BoltDB操作,图片操作,json操作,struct序列化
Stars: ✭ 151 (-27.4%)
Mutual labels:  jwt-token
Bbs node
node后端服务,node+express+mysql, 搭建token-权限-管理完整的web服务, 对应页面: https://www.lyh.red/admin \ https://www.lyh.red/bbs \ 接口地址https://www.lyh.red/apidoc/index.html
Stars: ✭ 78 (-62.5%)
Mutual labels:  jwt-token
React Login
A client side implementation of authentication using react.js for my blog on medium. This is the second part of my previous blog on how to implement scalable node.js server.
Stars: ✭ 105 (-49.52%)
Mutual labels:  jwt-token
Meetingfilm
基于微服务架构的在线电影购票平台
Stars: ✭ 149 (-28.37%)
Mutual labels:  jwt-token
Springboot React Jwt
JSON Web Token / React / Spring Boot example
Stars: ✭ 72 (-65.38%)
Mutual labels:  jwt-token
Doorkeeper Jwt
JWT Token support for Doorkeeper
Stars: ✭ 174 (-16.35%)
Mutual labels:  jwt-token
Duckygo
一个同时支持Session以及JWT的高性能高可用 Golang Restful API 脚手架 !
Stars: ✭ 57 (-72.6%)
Mutual labels:  jwt-token
Okhelper Service
OK帮 云进销存 (SpringBoot Restful 全家桶)
Stars: ✭ 146 (-29.81%)
Mutual labels:  jwt-token
Jwt Spring Security Jpa
Backend MVP showcasing JWT (Json Web Token) authentication with multiple login, timeout / refresh / logout (with in memory invalidation) using Spring Security & MySQL JPA.
Stars: ✭ 202 (-2.88%)
Mutual labels:  jwt-token
Jwtpermission
基于token验证的Java Web权限控制框架,使用jjwt,支持redis和db多种存储方式,可用于前后端分离项目,功能完善、使用简单、易于扩展。
Stars: ✭ 186 (-10.58%)
Mutual labels:  jwt-token
Jose2go
Golang (GO) implementation of Javascript Object Signing and Encryption specification
Stars: ✭ 150 (-27.88%)
Mutual labels:  jwt-token

apple-music-token-generator

Some steps that help getting started creating the Apple Music JWT tokens needed to use MusicKit on iOS

Recent Change

Added a Ruby version of the solution.

Getting Started

These instructions supplement the information found in the Get Started section of the Apple Music API Reference documents.

First, you must follow the instructions at Apple Music API Reference

Next, follow the instructions below to help create your developer token in the JSON Web Token format.

Prerequisites

A developer machine running macOS Sierra (10.12.5) You will need to run Terminal and have root access, or can run sudo After following the instructions at the URL above, you should now have 3 pieces of data:

  • a MusicKit private key in a *.p8 file
  • a 10-digit key identifier in your Apple Developer account
  • your 10-digit Apple Developer Account Team ID

Installing

Step 1

Easy method:

Run the following on the command line:

sudo easy_install pip

Old method:

Download the Python package manager from pip

Download the get-pip.py script from https://pip.pypa.io/en/stable/installing/

Install Python package manager

sudo python get-pip.py

Step 2

Now that the Python Package Manager (pip) is installed, use it to install the Python JWT library

sudo pip install pyjwt

Add the necessary Cryptography package

sudo pip install cryptography

All of that was just housekeeping to get you ready for the main event... actually generating the token.

Use you favourite editor to customize the script that will create your token.

open -e music_token.py

Copy your MusicKit private key from the .p8 file you generated and downloaded.

secret = """-----BEGIN PRIVATE KEY-----
REPLACE-THIS-WITH-YOUR-OWN-PRIVATE-KEY
-----END PRIVATE KEY-----"""

Substitute your 10-digit key identifier (kid) as found in your developer account

keyId = "9876543210"

Substitute your 10-digit Apple Developer Team ID

teamId = "0123456789"

Run the script

> python music_token.py

The script will output a sample curl command you can run to see if you were successful.


Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

  • Anonymous Apple Marketing Guy - Initial work - [Anonymous]
  • Darren Baptiste - First Commit - Pelau Imagineering

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to the folks in the MusicKit Lab at WWDC17
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].