@@ -36,7 +36,7 @@ func TestUser(t *testing.T) {
3636 "X-Remote-User" : {testUsername },
3737 }
3838
39- ident , err := callback .HandleCallback (connector.Scopes {OfflineAccess : true , Groups : true }, req )
39+ ident , err := callback .HandleCallback (connector.Scopes {OfflineAccess : true , Groups : true }, nil , req )
4040 expectNil (t , err )
4141
4242 // If not specified, the userID and email should fall back to the remote user
@@ -62,7 +62,7 @@ func TestExtraHeaders(t *testing.T) {
6262 "X-Remote-User-Email" : {testEmail },
6363 }
6464
65- ident , err := callback .HandleCallback (connector.Scopes {OfflineAccess : true , Groups : true }, req )
65+ ident , err := callback .HandleCallback (connector.Scopes {OfflineAccess : true , Groups : true }, nil , req )
6666 expectNil (t , err )
6767
6868 expectEquals (t , ident .UserID , testUserID )
@@ -85,7 +85,7 @@ func TestSingleGroup(t *testing.T) {
8585 "X-Remote-Group" : {testGroup1 },
8686 }
8787
88- ident , err := callback .HandleCallback (connector.Scopes {OfflineAccess : true , Groups : true }, req )
88+ ident , err := callback .HandleCallback (connector.Scopes {OfflineAccess : true , Groups : true }, nil , req )
8989 expectNil (t , err )
9090
9191 expectEquals (t , ident .UserID , testEmail )
@@ -106,7 +106,7 @@ func TestMultipleGroup(t *testing.T) {
106106 "X-Remote-Group" : {testGroup1 + ", " + testGroup2 + ", " + testGroup3 + ", " + testGroup4 },
107107 }
108108
109- ident , err := callback .HandleCallback (connector.Scopes {OfflineAccess : true , Groups : true }, req )
109+ ident , err := callback .HandleCallback (connector.Scopes {OfflineAccess : true , Groups : true }, nil , req )
110110 expectNil (t , err )
111111
112112 expectEquals (t , ident .UserID , testEmail )
@@ -132,7 +132,7 @@ func TestMultipleGroupWithCustomSeparator(t *testing.T) {
132132 "X-Remote-Group" : {testGroup1 + ";" + testGroup2 + ";" + testGroup3 + ";" + testGroup4 },
133133 }
134134
135- ident , err := callback .HandleCallback (connector.Scopes {OfflineAccess : true , Groups : true }, req )
135+ ident , err := callback .HandleCallback (connector.Scopes {OfflineAccess : true , Groups : true }, nil , req )
136136 expectNil (t , err )
137137
138138 expectEquals (t , ident .UserID , testEmail )
@@ -158,7 +158,7 @@ func TestStaticGroup(t *testing.T) {
158158 "X-Remote-Group" : {testGroup1 + ", " + testGroup2 + ", " + testGroup3 + ", " + testGroup4 },
159159 }
160160
161- ident , err := callback .HandleCallback (connector.Scopes {OfflineAccess : true , Groups : true }, req )
161+ ident , err := callback .HandleCallback (connector.Scopes {OfflineAccess : true , Groups : true }, nil , req )
162162 expectNil (t , err )
163163
164164 expectEquals (t , ident .UserID , testEmail )
0 commit comments