auth

Paddy 2015-06-29 Parent:73e12d5a1124

174:9e3ceddf29ad Go to Latest

auth/sql/postgres_empty.sql

Use an environment variable to set the JWT secret. When setting up the authd server, populate the JWT secret using a JWT_SECRET environment variable. Incidentally, we also included the subscriptions scope, for testing purposes while creating code.secondbit.org/ducky/subscriptions. We now also log the port we're listening on, listen on all interfaces (instead of just 127.0.0.1), and changed the port to 9000 instead of 8080.

History
paddy@155 1 TRUNCATE profiles;
paddy@155 2 TRUNCATE logins;
paddy@155 3 TRUNCATE clients;
paddy@155 4 TRUNCATE endpoints;
paddy@155 5 TRUNCATE scopes;
paddy@155 6 TRUNCATE sessions;
paddy@155 7 TRUNCATE tokens;
paddy@156 8 TRUNCATE authorization_codes;