Skip to content

U4me-4u/authentication

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 38.3%
  • JavaScript 22.4%
  • Go 14.3%
  • Shell 13.8%
  • Python 11.2%