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
feat(multiple-auth): add support for multiple auth (#79)
adds support for multiple auth i.e. authentication using And/Or combination. Now core library uses the auth builder to validate and apply the provided auth combinations. It also uses the same design for a single authentication scheme.
|[`ApiCall`](./src/main/java/io/apimatic/core/ApiCall.java)| An API call, or API request, is a message sent to a server asking an API to provide a service or information |
19
19
|[`Parameter`](./src/main/java/io/apimatic/core/Parameter.java)| HTTP parameters consist of a type, a name, and a value. These parameters appear in the header and body of an HTTP request. |
20
-
|[`ErrorCase`](./src/main/java/io/apimatic/core/ErrorCase.java)| A class is responsible to generate the SDK Exception |
20
+
|[`ErrorCase`](./src/main/java/io/apimatic/core/ErrorCase.java)| A class which is responsible to generate the SDK Exception |
21
21
|[`GlobalConfiguration`](./src/main/java/io/apimatic/core/GlobalConfiguration.java)| A class which hold the global configuration properties to make a successful Api Call |
22
22
|[`HttpRequest`](./src/main/java/io/apimatic/core/HttpRequest.java)| An HTTP request is made by a client, to a named host, which is located on a server |
23
23
|[`ResponseHandler`](./src/main/java/io/apimatic/core/ResponseHandler.java)| Handler that encapsulates the process of generating a response object from a Response |
24
24
|[`HttpLogger`](./src/main/java/io/apimatic/core/logger/HttpLogger.java)| A class to log the Http events. |
25
+
|[`AuthBuilder`](./src/main/java/io/apimatic/core/authentication/AuthBuilder.java)| A class to build and validate provided combination of auth schemes. |
26
+
|[`AuthCredential`](./src/main/java/io/apimatic/core/authentication/AuthCredential.java)| A parent class of [`HeaderAuth`](./src/main/java/io/apimatic/core/authentication/HeaderAuth.java) and [`QueryAuth`](./src/main/java/io/apimatic/core/authentication/QueryAuth.java) to hold the common implementation for header and query parameters |
25
27
|[`HeaderAuth`](./src/main/java/io/apimatic/core/authentication/HeaderAuth.java)| A class supports HTTP authentication through HTTP Headers |
26
28
|[`QueryAuth`](./src/main/java/io/apimatic/core/authentication/QueryAuth.java)| A class supports HTTP authentication through query parameters |
29
+
|[`AuthGroup`](./src/main/java/io/apimatic/core/authentication/multiple/AuthGroup.java)| A parent class of [`And`](./src/main/java/io/apimatic/core/authentication/multiple/And.java) and [`Or`](./src/main/java/io/apimatic/core/authentication/multiple/Or.java) to hold the common functionality of multiple auth |
30
+
|[`And`](./src/main/java/io/apimatic/core/authentication/multiple/And.java)| A class to hold the algorithm for `And` combination of auth schemes|
31
+
|[`Or`](./src/main/java/io/apimatic/core/authentication/multiple/Or.java)| A class to hold the algorithm for `Or` combination of auth schemes |
32
+
|[`Single`](./src/main/java/io/apimatic/core/authentication/multiple/Single.java)| A class to hold the logic for single auth scheme, it is used as leaf node for auth combination or it could be used directly to apply one auth only to the http request |
27
33
|[`CoreHttpClientConfiguration`](./src/main/java/io/apimatic/core/configurations/http/client/CoreHttpClientConfiguration.java)| To hold HTTP Client Configuration |
28
34
|[`ApiLoggingConfiguration`](./src/main/java/io/apimatic/core/configurations/http/client/ApiLoggingConfiguration.java)| To hold logging configuration |
29
35
|[`EndpointConfiguration`](./src/main/java/io/apimatic/core/configurations/http/request/EndpointConfiguration.java)| The configuration for an endpoint |
0 commit comments