@@ -127,7 +127,7 @@ func TestFederationProvider_TokenExchangeSuccess(t *testing.T) {
127127 "scope" : "sql" ,
128128 }
129129 w .Header ().Set ("Content-Type" , "application/json" )
130- json .NewEncoder (w ).Encode (response )
130+ _ = json .NewEncoder (w ).Encode (response )
131131 }))
132132 defer server .Close ()
133133
@@ -167,7 +167,7 @@ func TestFederationProvider_TokenExchangeWithClientID(t *testing.T) {
167167 "expires_in" : 3600 ,
168168 }
169169 w .Header ().Set ("Content-Type" , "application/json" )
170- json .NewEncoder (w ).Encode (response )
170+ _ = json .NewEncoder (w ).Encode (response )
171171 }))
172172 defer server .Close ()
173173
@@ -187,7 +187,7 @@ func TestFederationProvider_TokenExchangeFailureFallback(t *testing.T) {
187187 // Create mock server that returns error
188188 server := httptest .NewServer (http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
189189 w .WriteHeader (http .StatusBadRequest )
190- w .Write ([]byte (`{"error": "invalid_request"}` ))
190+ _ , _ = w .Write ([]byte (`{"error": "invalid_request"}` ))
191191 }))
192192 defer server .Close ()
193193
@@ -264,7 +264,7 @@ func TestFederationProvider_CachedIntegration(t *testing.T) {
264264 "expires_in" : 3600 ,
265265 }
266266 w .Header ().Set ("Content-Type" , "application/json" )
267- json .NewEncoder (w ).Encode (response )
267+ _ = json .NewEncoder (w ).Encode (response )
268268 }))
269269 defer server .Close ()
270270
@@ -325,12 +325,12 @@ func TestFederationProvider_InvalidJWT(t *testing.T) {
325325func TestFederationProvider_RealWorldIssuers (t * testing.T ) {
326326 // Test with real-world identity provider issuers
327327 issuers := map [string ]string {
328- "azure_ad" : "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0" ,
329- "google" : "https://accounts.google.com" ,
330- "aws_cognito" : "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_example" ,
331- "okta" : "https://dev-12345.okta.com/oauth2/default" ,
332- "auth0" : "https://dev-12345.auth0.com/" ,
333- "github" : "https://token.actions.githubusercontent.com" ,
328+ "azure_ad" : "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0" ,
329+ "google" : "https://accounts.google.com" ,
330+ "aws_cognito" : "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_example" ,
331+ "okta" : "https://dev-12345.okta.com/oauth2/default" ,
332+ "auth0" : "https://dev-12345.auth0.com/" ,
333+ "github" : "https://token.actions.githubusercontent.com" ,
334334 }
335335
336336 databricksHost := "test.databricks.com"
0 commit comments