Michael Gaffney
de162c5533
Replace and remove ErrNilParameter with ErrInvalidParameter ( #295 )
2020-08-25 12:18:14 -04:00
Jeff Mitchell
74544f6324
Encrypt tokens on the way out and decrypt on the way in ( #302 )
...
* Encrypt tokens on the way out and decrypt on the way in
This isn't a security feature related to tokens specifically; it's so
that we can discard cryptographically bad tokens before we ever hit the
DB. This way we can't pass through a DDoS to the database due to
fetching obviously invalid token values.
I'm using base58 to encode the resulting value as there aren't great
base62 options, and allowing base64 / and + values can hamper usability
by creating copying/highlighting breaks.
2020-08-25 00:20:50 -04:00
Jim
9570897032
basic keys mgmt repo ( #264 )
2020-08-19 16:47:18 -04:00
Jeff Mitchell
6661117d4c
The name. The name. The name!
2020-08-10 17:15:02 -04:00
Jim
1c836c430b
support for associating/disassociating an auth account with a user ( #233 )
2020-08-10 15:17:15 -04:00
Michael Gaffney
bdb31cf8b5
Bump deps ( #245 )
2020-08-08 10:49:43 -04:00
Todd Knight
41b2d36d98
AuthToken Tests now use recently added TestAuthMethod and TestAccount ( #226 )
2020-07-31 11:43:03 -07:00
Jim
cb89422d9d
define immutable fields including PKs. ( #205 )
2020-07-30 16:04:15 -04:00
Todd Knight
a0bed2b5d7
Truncate instead of round timestamps so our tests that require a time to pass can succeed. ( #224 )
2020-07-28 08:59:09 -04:00
Todd Knight
25514fb553
Fix a failing test due to time resolutions mismatch. ( #221 )
...
* Round generated expiration timestamps to the nearest second.
2020-07-27 14:06:59 -07:00
Michael Gaffney
e03a0ff9d7
Simplify SetTableName pattern ( #214 )
2020-07-23 17:58:41 -04:00
Todd Knight
f47046f158
Update Watchtower to use grpc-gateway v2 ( #204 )
...
* Migration to grpc gateway v2.
2020-07-23 11:26:15 -07:00
Todd Knight
6de1f7ee16
Auth Token Read/List/Delete handler and Go SDK ( #199 )
...
* Creating Auth Token Get List and Delete API.
2020-07-23 09:53:37 -07:00
Michael Gaffney
799242fce4
Bump deps and run 'make gen' ( #212 )
2020-07-22 17:00:22 -04:00
Jeff Mitchell
dec1f07266
Update deps and make proto
2020-07-20 13:47:27 -04:00
Jim
c83e90ed38
implement SetTableName patttern that allows table name to be set back to the default for the storage type. ( #196 )
2020-07-17 16:20:56 -04:00
Jeff Mitchell
acce195dcb
Organizations -> orgs consistency ( #189 )
...
* Organizations -> orgs consistency
* Fix up some tests and some mistaken substitutions
2020-07-11 12:00:49 -04:00
Todd Knight
beea32b8c8
Fixing test that was missed with PR #171 . ( #175 )
2020-07-08 16:55:37 -04:00
Todd Knight
2ce9affeea
Don't use repo to check impossible token requests and repo doesn't return error on token value mismatch. ( #171 )
...
* Remove error when tokens mismatch from public id but log returned errors from repo.
2020-07-08 09:09:09 -07:00
Todd Knight
c44a4c4795
Tools for auth token interception and authentication ( #152 )
2020-07-07 12:14:26 -07:00
Todd Knight
f69d6b9952
Creating Auth Token Repo ( #125 )
2020-07-07 07:44:49 -07:00