Julius Foitzik
e7b151c386
feat: grpc api list clients
...
refers to https://github.com/dexidp/dex/issues/3496
Signed-off-by: Julius Foitzik <info@accountr.eu>
8 months ago
Bob Maertz
ad31b5d6f7
Passing context storage ( #3941 )
...
Signed-off-by: Bob Maertz <1771054+bobmaertz@users.noreply.github.com>
1 year ago
Nicholas Wiersma
d521051e33
feat: set resource revision for connectors ( #3868 )
...
Signed-off-by: Nicholas Wiersma <nick@wiersma.co.za>
1 year ago
Koen de Laat
d0f1777c41
Added Discovery to grpc ( #3598 )
...
Signed-off-by: Koen de Laat <koen.de.laat@philips.com>
2 years ago
Maksim Nabokikh
81af48862b
Remove additional features and add a feature flag instead ( #3663 )
...
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2 years ago
Giovanni Campeol
b07e1bc9f1
gRPC Connectors API ( #3245 )
...
Signed-off-by: Giovanni Campeol <giovanni.campeol.95@gmail.com>
Signed-off-by: Maksim Nabokikh <maksim.nabokikh@flant.com>
Co-authored-by: Maksim Nabokikh <maksim.nabokikh@flant.com>
2 years ago
Sean Liao
0b6a78397e
use slog for structured logging ( #3502 )
...
Signed-off-by: Sean Liao <sean+git@liao.dev>
2 years ago
Ferenc Fabian
2377b0a0cd
Add context to storage's Create endpoints ( #2935 )
...
* Initial commit
Signed-off-by: PumpkinSeed <qwer.kocka@gmail.com>
* Finish the syntex fixes
Signed-off-by: PumpkinSeed <qwer.kocka@gmail.com>
* Add fixes after running the tests
Signed-off-by: PumpkinSeed <qwer.kocka@gmail.com>
* Change background context to request context
Signed-off-by: PumpkinSeed <qwer.kocka@gmail.com>
---------
Signed-off-by: PumpkinSeed <qwer.kocka@gmail.com>
2 years ago
Marco Franssen
895b166681
Implement GetClient gRPC endpoint ( #2972 )
...
Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
3 years ago
Maksim Nabokikh
20875c972e
Discard package "version" ( #2107 )
...
* Discard package "version"
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
* Inject api version
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
* Pass version arg to the dex API
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
5 years ago
Mark Sagi-Kazar
95796b04a3
chore(deps): upgrade protobuf and grpc
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
5 years ago
Steffen Pøhner Henriksen
0f68fadb9a
Allow public clients created with API to have no client_secret ( #1871 )
...
Signed-off-by: Steffen Pøhner Henriksen <str3sses@gmail.com>
5 years ago
m.nabokikh
a7667dff38
fix: remove empty RefreshTokens
...
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
5 years ago
m.nabokikh
b2e9f67edc
Enable unparam, prealloc, sqlclosecheck linters
...
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
5 years ago
Mark Sagi-Kazar
349832b380
Run fixer
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
5 years ago
Mark Sagi-Kazar
e84682d7b9
Add v2 api module
6 years ago
Mark Sagi-Kazar
f141f2133b
Fix whitespace
6 years ago
erwinvaneyk
3e2217b3f4
Replace x/net/context with context of stdlib
7 years ago
Stephan Renatus
231e571c3c
server/api: fix logging in VerifyPassword
...
Before:
msg="api: password check failed : %vcrypto/bcrypt: hashedPassword is not the hash of the given password"
After:
msg="api: password check failed : crypto/bcrypt: hashedPassword is not the hash of the given password"
Signed-off-by: Stephan Renatus <srenatus@chef.io>
7 years ago
Tyler Cloke
dd84e73c0e
Add VerifyPassword to API
...
It takes in an email and plain text password to verify. If it fails to find a password stored for email, it returns not_found. If it finds the password hash stored but that hash doesn't match the password passed via the API, it returns verified = false, else it returns verified = true.
Co-authored-by: Alban Seurat <alban.seurat@me.com>
7 years ago
Mark Sagi-Kazar
be581fa7ff
Add logger interface and stop relying on Logrus directly
7 years ago
Cosmin Cojocar
281ec27118
Update also to a list of empty redirect URIs and Peers
7 years ago
Cosmin Cojocar
9d1ec6c36b
Revert "Avoid overwriting exiting redirect URI and trusted peers when updating the client"
...
This reverts commit 49fa5ee6e8 .
7 years ago
Cosmin Cojocar
49fa5ee6e8
Avoid overwriting exiting redirect URI and trusted peers when updating the client
...
Also skip configure the Public field.
7 years ago
Cosmin Cojocar
9926a0dced
Extend the API with a function which updates the client configuration
7 years ago
Stephan Renatus
b9f6594bf0
*: github.com/coreos/dex -> github.com/dexidp/dex
...
Signed-off-by: Stephan Renatus <srenatus@chef.io>
8 years ago
Eric Chiang
f234e3707e
server: fix panic caused by deleting refresh token twice through api
9 years ago
Eric Stroczynski
2b354c8fdb
server: set sane bcrypt cost upper bound
9 years ago
Eric Stroczynski
4bcb0aaae9
server: log bcrypt cost if > 12, error on runtime > 10s
...
The bcrypt hashing algorithm runtime grows exponentially with cost,
and might cause a timeout if the cost is too high. Notifying the user
of high cost and of long running calculations will help with tuning
and debugging.
9 years ago
Eric Stroczynski
4a88d0641a
: update {S->s}irupsen/logrus
9 years ago
rithu john
aefdd6e004
server/api: return empty list of refresh tokens if user does not have any
9 years ago
rithu john
921090f05f
api: Update timestamp type for RefreshTokenRef to int64.
9 years ago
Eric Chiang
777eeafabc
*: update go-oidc and use standard library's context package
9 years ago
rithu john
3df1db1864
storage: Surface "already exists" errors.
9 years ago
rithu john
1ec19d4fbf
api: adding a gRPC call for revoking refresh tokens.
9 years ago
rithu john
d201e49248
api: adding a gRPC call for listing refresh tokens.
9 years ago
Eric Chiang
fe196864c0
*: fix comment typos found with github.com/client9/misspell
9 years ago
rithu john
9949a1313c
server: modify error messages to use logrus.
9 years ago
rithu john
ee9738d663
api: adding a gRPC call for listing passwords.
9 years ago
rithu john
de4e23a27b
api: add gRPC definition for version endpoint.
9 years ago
rithu leena john
ed7e943406
api: add gRPC endpoints for creating, updating and deleting passwords
10 years ago
Eric Chiang
8b079168be
server: add gRPC service implementation
10 years ago