ducreyna / objective-c-jwt-simple Goto Github PK
View Code? Open in Web Editor NEWObjective-c library to encode/decode a Json Web Token
License: MIT License
Objective-c library to encode/decode a Json Web Token
License: MIT License
I am trying to connect to api.music.apple.com . The JWT token needs to be ES256. I tried HS256 how ever I always get back a 401 status. If I used the token generated by a python script my networking code works. So I suspect either apple does not support HS255 or I am not passing my key to encode correctly
In my python script I would pass something like
secret = """-----BEGIN PRIVATE KEY-----
MIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHkwdwIBAQQgdql3rTmW2AQkoXTA
5G731A6e
-----END PRIVATE KEY-----"""
in my objc code my key would be
NSString *const testKey = @"MIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHkwdwIBAQQgdql3rTmW2AQkoXTA5G731A6e"
Kind regards
Andy
p.s. My "plan b" is to generate tokens and place them on my server. I not crazy about this approach. I do not think its particularly secure.
There is algorithm choice but signWithInput method always uses SHA256
I am trying to decode token i am receiving in Authorization key in json response header, but i am receiving the error as
***** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil**
How to resolve the issue?
Its Not working a all in present
Hi,
Can you update the library to integrate using cocoapods and carthage
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.