1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-01-10 04:18:14 +02:00
oauth2-proxy/providers
Ben Letton 10adb5c516
Support optional id_tokens in refresh responses (#335)
* OIDC Token Refresh works without id_tokens

Addresses https://github.com/pusher/oauth2_proxy/issues/318

Refactoring the OIDC provider so that the refresh process works when there are
no id_tokens present in the response. Added unit tests to the oidc_test.go to prove
the redeem and refresh still work.

The expiry time of the session is now taken from the outh token expiry and not
the id_token (preventing stale access_tokens in sessions).

* Refactoring the to use a KeySetStub in the oidc_test.go. This allows the
elimination of the slightly contrived function passing elements used
previously. (This change is being applied to address the bug #318)

* Changes as per the PR comments and preparing for 5.x release

* Fixup changelog

Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>
2020-02-06 18:09:30 +00:00
..
auth_test.go Fix linting error about const 2020-01-22 13:57:00 +03:00
azure_test.go Fix linting error about const 2020-01-22 13:57:00 +03:00
azure.go Fixing linting errors: Making sure err is checked in azure_test and gofmt has been run 2019-08-29 15:37:25 +01:00
bitbucket_test.go Fix linting error about const 2020-01-22 13:57:00 +03:00
bitbucket.go Add Bitbucket provider. (#201) 2019-08-16 14:53:22 +01:00
digitalocean_test.go Fix linting error about const 2020-01-22 13:57:00 +03:00
digitalocean.go DigitalOcean Auth Provider (#351) 2020-01-15 11:09:34 +00:00
facebook.go Move api to pkg/requests 2019-06-08 07:40:43 +01:00
github_test.go Fix linting error about const 2020-01-22 13:57:00 +03:00
github.go ReadAll() & Close()  close together. 2019-10-11 16:02:04 +09:00
gitlab_test.go Rework GitLab provider (#231) 2019-08-06 12:20:54 +01:00
gitlab.go Rework GitLab provider (#231) 2019-08-06 12:20:54 +01:00
google_test.go Check Google group membership with hasMember and get. (#224) 2019-08-06 10:38:24 +01:00
google.go Some code improvements 2019-10-09 15:44:26 +03:00
internal_util_test.go Move SessionState to its own package 2019-05-18 13:09:56 +02:00
internal_util.go Merge branch 'master' into refactor 2019-07-15 11:30:43 +01:00
keycloak_test.go Fix linting error about const 2020-01-22 13:57:00 +03:00
keycloak.go Get rid of dependencies on bitly/oauth2_proxy/api 2019-07-28 16:46:16 +02:00
linkedin_test.go Fix linting error about const 2020-01-22 13:57:00 +03:00
linkedin.go Move api to pkg/requests 2019-06-08 07:40:43 +01:00
logingov_test.go add login.gov provider (#55) 2019-03-20 13:44:51 +00:00
logingov.go Add CreatedAt to SessionState 2019-05-20 11:26:09 +02:00
nextcloud_test.go Fix linting error about const 2020-01-22 13:57:00 +03:00
nextcloud.go Add Nextcloud provider (#179) 2019-11-25 18:47:21 +01:00
oidc_test.go Support optional id_tokens in refresh responses (#335) 2020-02-06 18:09:30 +00:00
oidc.go Support optional id_tokens in refresh responses (#335) 2020-02-06 18:09:30 +00:00
provider_data.go Add comments to exported methods for providers package 2018-12-20 10:37:59 +00:00
provider_default_test.go Move SessionState to its own package 2019-05-18 13:09:56 +02:00
provider_default.go Move cookie to pkg/encryption 2019-06-15 11:33:57 +02:00
providers.go DigitalOcean Auth Provider (#351) 2020-01-15 11:09:34 +00:00