From f51a8631586126dc09b8a3ca6f21473e35d441c5 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 9 Aug 2017 20:55:37 -0400 Subject: [PATCH] Remove access_token from user_info --- data/users/test/test_oidc.py | 4 +--- oauth/base.py | 1 - util/config/validators/validate_oidcauth.py | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/data/users/test/test_oidc.py b/data/users/test/test_oidc.py index 68e8fdf1d..23342316a 100644 --- a/data/users/test/test_oidc.py +++ b/data/users/test/test_oidc.py @@ -4,9 +4,7 @@ from httmock import HTTMock from data import model from data.users.oidc import OIDCInternalAuth -from oauth.test.test_oidc import (id_token, oidc_service, signing_key, jwks_handler, - discovery_handler, app_config, http_client, - discovery_content) +from oauth.test.test_oidc import * from test.fixtures import * @pytest.mark.parametrize('username, expect_success', [ diff --git a/oauth/base.py b/oauth/base.py index f50ae80d8..a699358bd 100644 --- a/oauth/base.py +++ b/oauth/base.py @@ -97,7 +97,6 @@ class OAuthService(object): def get_user_info(self, http_client, token): token_param = { - 'access_token': token, 'alt': 'json', } diff --git a/util/config/validators/validate_oidcauth.py b/util/config/validators/validate_oidcauth.py index bfec66ed7..5d74fa23d 100644 --- a/util/config/validators/validate_oidcauth.py +++ b/util/config/validators/validate_oidcauth.py @@ -19,5 +19,3 @@ class OIDCAuthValidator(BaseValidator): OIDCInternalAuth(config, login_service_id, False) except UnknownServiceException as use: raise ConfigValidationException(use.message) - -