You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// multiple calls to auth with the same config are not idempotent only for APIKey with COOKIE and QUERY - that's why we have NOAPIKEY as default
145
+
authConfig match
146
+
case Authorization.NoAuthorization => request
147
+
case Authorization.BasicAuth(username, password) => request.auth.basic(username, password)
148
+
case Authorization.BearerToken(token) => request.auth.bearer(token)
149
+
case Authorization.ApiKey(apiKey) =>location match
150
+
case ApiKeyLocation.HEADER => request.header(keyParamName, apiKey)
151
+
case ApiKeyLocation.COOKIE => request.cookie(keyParamName, apiKey)
152
+
case ApiKeyLocation.QUERY => request.copy(uri = request.uri.addParam(keyParamName, apiKey))
153
+
case ApiKeyLocation.NOAPIKEY => request // since it can be called multiple times in request (when there are for example 2 auth methods) we want to make this call idempotent
0 commit comments