Skip to content

Commit 53cec01

Browse files
authored
Provider Public Fields (#117)
1 parent 336fcdf commit 53cec01

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Sources/OAuthKit/OAuth+Provider.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,29 @@ extension OAuth {
1717
/// The provider icon.
1818
public var icon: URL?
1919
/// The provider authorization url.
20-
var authorizationURL: URL
20+
public var authorizationURL: URL
2121
/// The provider access token url.
22-
var accessTokenURL: URL
22+
public var accessTokenURL: URL
2323
/// The provider device code url that can be used for devices without browsers (like tvOS).
24-
var deviceCodeURL: URL?
24+
public var deviceCodeURL: URL?
25+
/// The provider redirect uri.
26+
public var redirectURI: String?
2527
/// The unique client identifier for interacting with this providers oauth server.
2628
var clientID: String
2729
/// The client's secret known only to the client and the providers oauth server. It is essential the client's password.
2830
var clientSecret: String?
29-
/// The provider redirect uri.
30-
var redirectURI: String?
3131
/// The provider scopes.
32-
var scope: [String]?
32+
public var scope: [String]?
3333
/// Informs the oauth client to encode the access token query parameters into the
3434
/// http body (using application/x-www-form-urlencoded) or simply send the query parameters with the request.
3535
/// This is turned on by default, but you may need to disable this based on how the provider is implemented.
36-
var encodeHttpBody: Bool
36+
public var encodeHttpBody: Bool
3737
/// The custom user agent to send with browser requests. Providers such as Slack will block unsupported browsers
3838
/// from initiating oauth workflows. Setting this value to a supported user agent string can allow for workarounds.
3939
/// Be very careful when setting this value as it can have unintended consquences of how servers respond to requests.
40-
var customUserAgent: String?
40+
public var customUserAgent: String?
4141
/// Enables provider debugging. Off by default.
42-
var debug: Bool
42+
public var debug: Bool
4343

4444
/// The coding keys.
4545
enum CodingKeys: String, CodingKey {

0 commit comments

Comments
 (0)