Rui Yang
8ea121b45a
move oauth connector doc to dex website repo
...
move default key values configure to connector construct function
Signed-off-by: Rui Yang <ruiya@vmware.com >
2021-11-17 15:06:54 -05:00
Rui Yang
49cb30af26
readme minor fix for oauth connector
...
Signed-off-by: Rui Yang <ruiya@vmware.com >
2021-11-17 15:06:54 -05:00
Rui Yang
02860da8b6
use claim mappings when retrieving user identity
...
Signed-off-by: Rui Yang <ruiya@vmware.com >
2021-11-17 15:06:54 -05:00
Rui Yang
60b8875780
use testify in oauth tests
...
Signed-off-by: Rui Yang <ruiya@vmware.com >
2021-11-17 15:06:54 -05:00
Rui Yang
9952851cc4
add configurable preferred_username key
...
Signed-off-by: Rui Yang <ruiya@vmware.com >
2021-11-17 15:06:54 -05:00
Rui Yang
fdf19e8014
add docs for oauth connector
...
Signed-off-by: Rui Yang <ruiya@vmware.com >
2021-11-17 15:06:54 -05:00
Rui Yang
fe8085b886
remove client secret encryption option
...
constant time compare for client secret verification will be kept
Signed-off-by: Rui Yang <ruiya@vmware.com >
2021-05-17 10:16:50 -04:00
Rui Yang
ecea593ddd
fix a bug in hash comparison function
...
the client secret coming in should be hashed and the one in storage
is the one in plaintext
Signed-off-by: Rui Yang <ruiya@vmware.com >
2021-05-14 13:32:27 -04:00
Rui Yang and Aidan Oldershaw
2f28fc7451
default to ./web when Dir and WebFS are not set
...
update WebFS doc
Signed-off-by: Rui Yang <ruiya@vmware.com >
Co-authored-by: Aidan Oldershaw <aoldershaw@pivotal.io >
2021-03-20 20:05:59 +00:00
Rui Yang and Aidan Oldershaw
4e569024fd
use go 1.16 new package io/fs
...
Unify the interface for reading web statics. Now it could read an
OS directory or get the content on live
One could use
//go:embed static
var webFiles embed.FS
anywhere and config dex server to take the file system by setting
WebConfig{WebFS: webFiles}
Signed-off-by: Rui Yang <ruiya@vmware.com >
Co-authored-by: Aidan Oldershaw <aoldershaw@pivotal.io >
2021-03-20 20:05:59 +00:00
Rui Yang and Vikram Yadav
7b50cbf0ac
use pkger for embedding static contents
...
Co-authored-by: Vikram Yadav <vyadav@pivotal.io >
Signed-off-by: Rui Yang <ruiya@vmware.com >
2021-03-20 20:05:59 +00:00
Rui Yang and Aidan Oldershaw
1eab25f89f
use web host url for asset hosting
...
Signed-off-by: Rui Yang <ruiya@vmware.com >
Co-authored-by: Aidan Oldershaw <aoldershaw@pivotal.io >
2021-03-20 20:05:59 +00:00
Rui Yang and Alex Surraci
d658c24e8f
add dex config flag for enabling client secret encryption
...
* if enabled, it will make sure client secret is bcrypted correctly
* if not, it falls back to old behaviour that allowing empty client
secret and comparing plain text, though now it will do
ConstantTimeCompare to avoid a timing attack.
So in either way it should provide more secure of client secret
verification.
Co-authored-by: Alex Surraci <suraci.alex@gmail.com >
Signed-off-by: Rui Yang <ruiya@vmware.com >
2021-03-20 20:05:56 +00:00
Rui Yang and Josh Winters
bd2234cd12
Add constructor for static key strategy
...
Co-authored-by: Josh Winters <jwinter@pivotal.io >
Signed-off-by: Rui Yang <ruiya@vmware.com >
2020-10-01 15:32:23 -04:00
Rui Yang
058202d007
revert changes for user id and user name
...
Signed-off-by: Rui Yang <ruiya@vmware.com >
2020-09-08 13:12:59 -04:00
Rui Yang
0494993326
update oidc documentation and email claim err msg
...
Signed-off-by: Rui Yang <ruiya@vmware.com >
2020-09-08 10:03:57 -04:00
Rui Yang
41207ba265
Combine #1691 and #1776 to unify OIDC provider claim mapping
...
add tests for groups key mapping
Signed-off-by: Rui Yang <ruiya@vmware.com >
2020-08-11 16:26:55 -04:00
Rui Yang
4812079647
add tests when preferred username key is not set
...
Signed-off-by: Rui Yang <ruiya@vmware.com >
2020-08-11 16:26:55 -04:00