I've been playing around with AirBnb's Rendr using the app template they provided on GitHub.
In their example they connect to a RESTful API using HTTP Basic Auth. However in their code they provide the credentials for authentication directly on server startup like so:
$ BASIC_AUTH=githubusername:githubpassword grunt server
Now I'm asking myself if and how I can make this more dynamic, i.e. using the credentials a user has provided on the login of my client application or even use a different authentication schema, like OAuth for example?
Is this possible? Can someone provide an example?