GithubHelp home page GithubHelp logo

demo-app's Introduction

YTS Demo App

Generated Sources

Run Maven compile step to generate DTOs based on Swagger JSON spec resources/swagger/swagger.json

YTS Account Setup

The app needs two keystores to connect successfully to YTS.

  • keystore.p12 - TLS certificate signing
  • signing-keystore.p12 - for access token requests

When you check out the app, it should be possible to run it and make requests to YTS Sandbox.

If you want to generate you own, follow these steps.

Keystores

Follow the instructions on https://developer.yolt.com/docs/connect-to-yts-tutorial

The steps for Request token public key will result in 2 files:

  • private-key.pem
  • public-key.pem (paste this into Request token public key)

The steps for Mutual TLS certificate signing request will result in 2 files:

  • tls-csr.pem (paste this into Mutual TLS CSR)
  • tls-private-key.pem

After successfully creating a YTS client, copy the content of the text box MUTUAL TLS CERTIFICATE into a new file tls-mutual-certificate.pem.

Generate the .p12 files as follows:

openssl pkcs12 -export -out keystore.p12 -in tls-mutual-certificate.pem -inkey tls-private-key.pem -name demo-app-tls -passout pass:123

openssl pkcs12 -export -out signing-keystore.p12 -inkey private-key.pem -name demo-app-signing -nocerts -passout pass:123

These files need to be placed under resources/tls.

application.properties

  • client.id- paste the value of CLIENT_ID
  • client.signing.request.token.id - paste the value of REQUEST_TOKEN_PUBLIC_KEY_ID
  • redirect.url.id - paste the value of REDIRECT_URL_ID

demo-app's People

Contributors

pimg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.