auth

Paddy 2015-04-11 Parent:2809016184f6 Child:73e12d5a1124

157:202e991accc2 Go to Latest

auth/sql/postgres_empty.sql

Wire up the postgres database for authd. Have authd use the AUTH_PG_DB environment variable to detect support for the postgres *Stores, and if postgres is supported, use it. If postgres isn't supported, fall back on the in-memory store. Also create-if-not-exists the test scopes, instead of panicking when the scope already exists.

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@155 8 TRUNCATE scopes_tokens;
paddy@156 9 TRUNCATE authorization_codes;
paddy@156 10 TRUNCATE authorization_codes_scopes;