Implemented the Authentication middleware #3

Merged
javier merged 8 commits from library/auth-middleware into main 2025-10-11 07:39:55 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 9982deab7b - Show all commits
@@ -23,7 +23,7 @@
/// Personal access token | 🐰 High tier | Yes | Yes, for token holder only 👩 /// Personal access token | 🐰 High tier | Yes | Yes, for token holder only 👩
/// ///
/// Please refer to the [Discogs documentation](https://www.discogs.com/developers#page:authentication,header:authentication-discogs-auth-flow) for further details. /// Please refer to the [Discogs documentation](https://www.discogs.com/developers#page:authentication,header:authentication-discogs-auth-flow) for further details.
public enum AuthMethod { public enum AuthMethod: Equatable, Sendable {
/// A consumer key and secret that allows access to endpoints that requires authentication. /// A consumer key and secret that allows access to endpoints that requires authentication.
case consumer(key: String, secret: String) case consumer(key: String, secret: String)
/// No authentication method defined. /// No authentication method defined.
@@ -13,7 +13,7 @@
// ===----------------------------------------------------------------------=== // ===----------------------------------------------------------------------===
/// A representation of the available transport options to send credentials in authenticated requests. /// A representation of the available transport options to send credentials in authenticated requests.
public enum AuthTransport { public enum AuthTransport: Sendable {
/// Authentication credential are sent in a request as an `Authentication` header. /// Authentication credential are sent in a request as an `Authentication` header.
/// ///
/// This means that the header will be added to any existing header in a request, like this: /// This means that the header will be added to any existing header in a request, like this: