Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Key features include:
- [Custom URLSession](https://codefiesta.github.io/OAuthKit/documentation/oauthkit/configuration#URL-Session) configuration for complete control custom protocol specific data
- [Observable State](https://codefiesta.github.io/OAuthKit/documentation/oauthkit/gettingstarted#Observing-OAuth-State) driven events to allow full control over when and if users are prompted to authenticate with an OAuth provider
- Supports all Apple Platforms (iOS, macOS, tvOS, visionOS, watchOS)
- [Support for every OAuth 2.0 Flow](#oauthkit-configuration)
- [Support for every OAuth 2.0 Flow](#oauthkit-authorization-flows)
- [Authorization Code](#oauth-20-authorization-code-flow)
- [PKCE](#oauth-20-pkce-flow)
- [Device Code](#oauth-20-device-code-flow)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// EnvironmentValues+Extensions.swift
//
//
// Created by Kevin McKee on 5/16/24.
// Created by Kevin McKee
//

import SwiftUI
Expand Down
2 changes: 1 addition & 1 deletion Sources/OAuthKit/Extensions/Task+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Task+Extensions.swift
//
//
// Created by Kevin McKee on 5/30/24.
// Created by Kevin McKee
//

import Foundation
Expand Down
2 changes: 1 addition & 1 deletion Sources/OAuthKit/Extensions/URLRequest+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// URLRequest+Extensions.swift
//
//
// Created by Kevin McKee on 5/30/24.
// Created by Kevin McKee
//

import Foundation
Expand Down
4 changes: 2 additions & 2 deletions Sources/OAuthKit/Keychain/Keychain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Keychain.swift
//
//
// Created by Kevin McKee on 5/28/24.
// Created by Kevin McKee
//

import Foundation
Expand Down Expand Up @@ -159,6 +159,6 @@ class Keychain: @unchecked Sendable {
/// - Parameter key: the key to prefix.
/// - Returns: the unique account key to use
private func accountKey(_ key: String) -> String {
return applicationTag + "." + key + "." + tokenIdentifier
applicationTag + "." + key + "." + tokenIdentifier
}
}
2 changes: 1 addition & 1 deletion Sources/OAuthKit/Network/NetworkMonitor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// NetworkMonitor.swift
//
//
// Created by Kevin McKee on 5/30/24.
// Created by Kevin McKee
//

import Network
Expand Down
5 changes: 2 additions & 3 deletions Sources/OAuthKit/OAuth+PKCE.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@ extension OAuth {
public let state: String

/// Returns the code challenge method. Currently only supports [SHA-256 hash](https://en.wikipedia.org/wiki/SHA-2).
public var codeChallengeMethod: String {
defaultCodeChallengeMethod
}
public let codeChallengeMethod: String

/// Initializer.
public init() {
codeVerifier = .secureRandom()
codeChallenge = codeVerifier.sha256.base64URL
codeChallengeMethod = defaultCodeChallengeMethod
state = .secureRandom(count: 16).base64URL
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/OAuthKit/OAuth+Request.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extension OAuth {
struct Request {

/// Provides constants for URLQueryItem keys.
enum Key: String {
fileprivate enum Key: String {
case code = "code"
case clientID = "client_id"
case clientSecret = "client_secret"
Expand Down
2 changes: 1 addition & 1 deletion Sources/OAuthKit/OAuth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// OAuth.swift
//
//
// Created by Kevin McKee on 5/14/24.
// Created by Kevin McKee
//
import Foundation
#if canImport(LocalAuthentication)
Expand Down
2 changes: 1 addition & 1 deletion Sources/OAuthKit/Views/OAWebView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// OAWebView.swift
//
//
// Created by Kevin McKee on 5/16/24.
// Created by Kevin McKee
//

#if canImport(WebKit)
Expand Down
2 changes: 1 addition & 1 deletion Sources/OAuthKit/Views/OAWebViewCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// OAWebViewCoordinator.swift
//
//
// Created by Kevin McKee on 5/16/24.
// Created by Kevin McKee
//

#if canImport(WebKit)
Expand Down
2 changes: 1 addition & 1 deletion Tests/OAuthKitTests/OAuth+Monitor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// OAuth+Monitor.swift
// OAuthKit
//
// Created by Kevin McKee on 6/6/25.
// Created by Kevin McKee
//

import Foundation
Expand Down