Remove access_token from user_info
This commit is contained in:
parent
adc70d2fe2
commit
f51a863158
3 changed files with 1 additions and 6 deletions
|
@ -4,9 +4,7 @@ from httmock import HTTMock
|
||||||
|
|
||||||
from data import model
|
from data import model
|
||||||
from data.users.oidc import OIDCInternalAuth
|
from data.users.oidc import OIDCInternalAuth
|
||||||
from oauth.test.test_oidc import (id_token, oidc_service, signing_key, jwks_handler,
|
from oauth.test.test_oidc import *
|
||||||
discovery_handler, app_config, http_client,
|
|
||||||
discovery_content)
|
|
||||||
from test.fixtures import *
|
from test.fixtures import *
|
||||||
|
|
||||||
@pytest.mark.parametrize('username, expect_success', [
|
@pytest.mark.parametrize('username, expect_success', [
|
||||||
|
|
|
@ -97,7 +97,6 @@ class OAuthService(object):
|
||||||
|
|
||||||
def get_user_info(self, http_client, token):
|
def get_user_info(self, http_client, token):
|
||||||
token_param = {
|
token_param = {
|
||||||
'access_token': token,
|
|
||||||
'alt': 'json',
|
'alt': 'json',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,5 +19,3 @@ class OIDCAuthValidator(BaseValidator):
|
||||||
OIDCInternalAuth(config, login_service_id, False)
|
OIDCInternalAuth(config, login_service_id, False)
|
||||||
except UnknownServiceException as use:
|
except UnknownServiceException as use:
|
||||||
raise ConfigValidationException(use.message)
|
raise ConfigValidationException(use.message)
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue