Skip to content

Example code showing how to authenticate to our payments APIs

License

Notifications You must be signed in to change notification settings

jpmorgan-payments/authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

521 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

J.P. Morgan Authentication examples

Within this repository you can find example code for accessing our Payments APIs. We have split the code by programming language for ease of use. Each folder contains:

  • sample-authentication-code: This contains code scripts for generating digital signatures (also known as JWTs), gathering access tokens and generating certificates.

**Note this is not production code and is supplied to get developers started **

Generating test certificates

You can follow the below commands to get setup with some testing certificates to get the code running.

openssl genrsa -out keypair.pem 2048
openssl rsa -in keypair.pem -pubout -out publickey.crt
openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in keypair.pem -out pkcs8.key

To use mTLS authentication with J.P. Morgan APIs follow the steps on our developer portal at: https://developer.payments.jpmorgan.com/api/authentication

Contribution

These are simple example snippets. We welcome any additional language contributions and any performance improvements/suggestions.

About

Example code showing how to authenticate to our payments APIs

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors 7