No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
test
.gitignore
LICENSE
README.md
mix.exs
mix.lock

README.md

Deprecated. Please use tellerhq/iOS-SDK instead

TAuthProxy

A simple proxy for developing mobile apps against Teller.

TAuth (basically OAuth 2.0 implicit grant + mutual TLS) is mandatory for production deployments, i.e. users authorising your app using Login with Teller. We currently only sign certificates for server applications, which right now makes a server component a requirement for Teller apps using TAuth. In the future we will sign certificates for mobile apps and ship SDKs to completely abstract everything away, making this project redundant.

This project is intended as a demonstrative guide or starting point for how to build mobile apps with TAuth and/or how to implement TAuth in your server apps.

Getting started

  • Create a Teller TAuth Application and request a certificate
  • This project is written in Elixir, so you will need to install it if you don't have it already.
  • Clone this repo
  • Save certificate.pem and private_key.pem in the /priv subdirectory of this project
  • Update config.exs with your application settings
  • Run locally or deploy, e.g. to Heroku
  • Point your application at your deployment

Endpoints

  • /auth/redirect - redirects users to the Teller hosted authorisation page for your application
  • /api/* - proxies everything to Teller via a TAuth mutally authenticated TLS connection, e.g. /api/accounts proxies to https://api.teller.io/accounts