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
1 TRUNCATE profiles;
2 TRUNCATE logins;
3 TRUNCATE clients;
4 TRUNCATE endpoints;
5 TRUNCATE scopes;
6 TRUNCATE sessions;
7 TRUNCATE tokens;
8 TRUNCATE scopes_tokens;
9 TRUNCATE authorization_codes;
10 TRUNCATE authorization_codes_scopes;