Hi community !
I need to use these to communication with the API of a third party.
Is there a plugin, or any resource, that I could use to implement these in my app ?
Thank you, regards
Hi community !
I need to use these to communication with the API of a third party.
Is there a plugin, or any resource, that I could use to implement these in my app ?
Thank you, regards
I don’t know of any plugin or calls that do this automatically but looking at the specs it looks like plain json, base64 and whatever algorithm you specify in the header (or in your case what the provider specified in the header). This is quite doable in Corona but you probably will have to create the calls yourself.
Arent those tokens typically created by the API and just sent back to client to store for future use?
I don’t know much about JWK or JWE, but JWT should be something you can use, since that’s almost entirely done on the back end.
Basically you would use network.reqeust() and call your server’s login process, it should return a base64 encoded string that’s your JWT. Then to use API’s going forward, you include that token in a header that you send back with the next network.request(). The server takes that token and verifies it’s and send the API results back to you.