Maksim Nabokikh
9a9a90080b
Example app pkce ( #4284 )
...
Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
Signed-off-by: Maksim Nabokikh <max.nabokih@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
6 months ago
Eng Zer Jun
f0186ff265
refactor: move from io/ioutil to io and os package
...
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
5 years ago
Mark Sagi-Kazar
7775a7e27a
Update oidc library in example app
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
5 years ago
Mark Sagi-Kazar
6dadc26ca2
Move the example app to th examples folder
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
6 years ago
Mark Sagi-Kazar
142c96c210
Fix stylecheck
6 years ago
Stephan Renatus
d7c7d42466
cmd/example-app: check all errors, pass claims as string to renderToken
...
Signed-off-by: Stephan Renatus <srenatus@chef.io>
7 years ago
Stephan Renatus
c4e0587df1
cmd/example-app: expose connector_id
...
As a piece of "living documentation" for #1481 .
Signed-off-by: Stephan Renatus <srenatus@chef.io>
7 years ago
Haines Chan
18b6b34b67
Display access token in example app
7 years ago
Haines Chan
b78b8aeee0
Replace "GET", "POST" to http.MethodGet and http.MethodPost
7 years ago
Eric Chiang
9b0e9ab2ca
cmd/example-app: fix custom CA behavior
9 years ago
Eric Chiang
777eeafabc
*: update go-oidc and use standard library's context package
9 years ago
Eric Chiang
ed20fee2b9
cmd/example-app: fix refreshing
9 years ago
Eric Chiang
78665074ed
cmd/example-app: add option to not request a refresh token
9 years ago
Eric Chiang
aebb6818b7
cmd/example-app: use a non-empty state
...
Use a non-empty state in the example-app to ensure dex is properly
preserving the state for the code flow.
Updates #712
9 years ago
Eric Chiang
522749b5d8
*: switch oidc client to github.com/coreos/go-oidc
...
This saves us from having to import two different versions of
square/go-jose.
9 years ago
Eric Chiang
35d6423ac2
cmd/example-app: add a --debug flag
10 years ago
Eric Chiang
dc13f09fb7
*: add more comments to the example config
10 years ago
Eric Chiang
fdc529ee0d
cmd/example-app: check if a provider supports a refresh token scope
...
Some OpenID Connect providers, notably Google, don't follow the spec
and allow refresh tokens to be requested with the "offline_access"
scope. Try to determine which we're talking to by checking the
supported_scopes listed by the provider discovery.
10 years ago
Eric Chiang
d313e5d493
*: add example for running on kubernetes
10 years ago
Eric Chiang
467d02738e
*: add example-app
10 years ago