Bobby Rullo
c1f8effe1a
db, functional: make value column in key not pkey
...
go-oidc increased the size of the generated keys, which were too large
to be used as primary keys in postgres.
10 years ago
Eric Chiang
8e5115ce73
cmd: use spf13/cobra for dexctl cli logic
10 years ago
Eric Chiang
f43655a8c3
user/manager: connector must exists when creating remote identity
...
Add ConnectorConfigRepo to UserManager. When trying to create a
RemoteIdentity, validate that the connector ID exists.
Fixes #198
10 years ago
George Tankersley
07a4d4441e
pkg/crypto: replace old crypto with new crypto
11 years ago
Joe Bowers
2ed2859896
repo: functional repo tests
...
includes changes to ensure uniform errors for DB and in-memory repos
11 years ago
Yifan Gu
44c6cb44f5
refresh: bcrypt raw bytes rather than base64 encoded string.
...
This enables us to control the length of the bytes that will be bcrypted,
by default it's 64.
Also changed the token's stored form from string('text') to []byte('bytea')
and added some test cases for different types of invalid tokens.
11 years ago
Bobby Rullo
c8feb5c33d
db: PrivateKeySetRepo now takes >1 secrets
...
The first secret is used to encrypt, the rest are for decryption; if the
first doesn't work, the rest are tried in order.
The makes it possible to rotate keys.
11 years ago
Bobby Rullo
74df09acb6
db: gorp moved to github.com/go-gorp/gorp
11 years ago
Bobby Rullo
4ce5a36d08
db: initialize bigint, boolean columns
...
gorp hates nil.
11 years ago
Bobby Rullo
84bc8073de
functional: Test DBs use migrations
...
All repo tests build their tables by applying all the migrations. This
way we know our migrations are functional.
11 years ago
Bobby Rullo
66fe201c24
*: move original project to dex
11 years ago