@@ -715,7 +715,7 @@ def test_oidc_code_auth(self):
715715 # Get provider info
716716 client .provider_config ( 'http://%s/api/openid' % host )
717717
718- # No registration step -- we only supported this out-of-band
718+ # No registration step -- we only support this out-of-band
719719
720720 # Set shared client/provider information in the client
721721 client_reg = RegistrationResponse ( client_id = oid_client_record .client_id ,
@@ -727,7 +727,9 @@ def test_oidc_code_auth(self):
727727 RoleFactory (name_id = 'chair' , person = person )
728728 meeting = MeetingFactory (type_id = 'ietf' , date = datetime .date .today ())
729729 MeetingRegistration .objects .create (
730- meeting = meeting , person = None , first_name = person .first_name (), last_name = person .last_name (), email = person .email ())
730+ meeting = meeting , person = None , first_name = person .first_name (), last_name = person .last_name (),
731+ email = person .email (), ticket_type = 'full_week' , reg_type = 'remote' , affiliation = 'Some Company' ,
732+ )
731733
732734 # Get access authorisation
733735 session = {}
@@ -783,7 +785,8 @@ def test_oidc_code_auth(self):
783785
784786 # Get userinfo, check keys present
785787 userinfo = client .do_user_info_request (state = params ["state" ], scope = args ['scope' ])
786- for key in [ 'email' , 'family_name' , 'given_name' , 'meeting' , 'name' , 'roles' , ]:
788+ for key in [ 'email' , 'family_name' , 'given_name' , 'meeting' , 'name' , 'roles' ,
789+ 'ticket_type' , 'reg_type' , 'affiliation' , ]:
787790 self .assertIn (key , userinfo )
788791
789792 r = client .do_end_session_request (state = params ["state" ], scope = args ['scope' ])
0 commit comments