Skip to main content

Appendix B – Integration with third party application or HTTP service

Actors:

User Portal, Spark Gateway, Third party application or HTTP server

Preconditions:

User Portal:

  • Prepare a token which can be used to verify user.

Spark Gateway:

  • Configure authToken.name, authToken.exec, authToken.sucessCode in gateway.conf.

Basic flow:

  1. User Portal send the token to Spark Gateway along with other parameters.
  2. Spark Gateway check if the token name is same as the value configured in authToken.name. It’s same, then.
  3. Spark Gateway execute the application or HTTP Request(GET) configured in authToken.exec, if the return code or HTTP Status code is same as the authToken.sucessCode, gateway will allow the connection, otherwise reject it.