Skip to content

Commit 9c51575

Browse files
committed
Merge branch 'develop'
2 parents f1393ca + d7ee3bc commit 9c51575

File tree

59 files changed

+4227
-2819
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+4227
-2819
lines changed

.jazzy.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# Jazzy config
2+
module: OAuth2
3+
24
author_url: http://www.github.com/p2
35
root_url: http://smart-on-fhir.github.io/Swift-SMART
46
github_url: http://p2.github.io/OAuth2
7+
8+
theme: fullwidth
9+
readme: README.md

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ language: objective-c # well "swift" actually
22
osx_image: xcode8
33
xcode_project: OAuth2.xcodeproj
44
xcode_scheme: OAuth2OSX
5-
xcode_sdk: macosx10.11
5+
xcode_sdk: macosx
66
script:
77
- travis_wait xcodebuild

CHANGELOG.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,25 @@ Version numbering represents the Swift version, plus a running number representi
55
You can also refer to commit logs to get details on what was implemented, fixed and improved.
66

77

8+
### 3.0.0
9+
10+
- Rewrite in Swift 3
11+
- New DataLoader, meaning you don't have to do authorization yourself (and helps with Alamofire use)
12+
- Broad API redesign, you should now use `authorize(params:callback:)` if you still authorize manually
13+
- All errors returned by OAuth2 are now `OAuth2Error` types
14+
- Add `Package.swift` for the Swift package manager
15+
- Expose `keychainAccessGroup` (`keychain_access_group` in settings; thanks @damienrambout !)
16+
- Some new errors (like `.forbidden` and `.missingState`)
17+
18+
819
### 2.3.0
920

1021
- Use Swift 2.3
1122

1223

1324
### 2.2.9
1425

15-
- Allow to add custom authentication headers (thanks @SpectralDragon)
26+
- Allow to add custom authorization headers (thanks @SpectralDragon)
1627
- Fix: add `client_id` to password grant even if there is no secret (thanks Criss!)
1728

1829

@@ -49,7 +60,7 @@ You can also refer to commit logs to get details on what was implemented, fixed
4960

5061
### 2.2.3
5162

52-
- Refactor authentication request creation
63+
- Refactor authorization request creation
5364
- Add `OAuth2ClientCredentialsReddit` to deal with Reddit installed apps special flow
5465
- Rename clashing method definitions to fix #99
5566

Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.3.0</string>
18+
<string>3.0.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

OAuth2.xcodeproj/project.pbxproj

Lines changed: 226 additions & 114 deletions
Large diffs are not rendered by default.

OAuth2.xcodeproj/xcshareddata/xcschemes/OAuth2OSX.xcscheme renamed to OAuth2.xcodeproj/xcshareddata/xcschemes/OAuth2macOS.xcscheme

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
BuildableIdentifier = "primary"
1717
BlueprintIdentifier = "EEE209461942772800736F1A"
1818
BuildableName = "OAuth2.framework"
19-
BlueprintName = "OAuth2OSX"
19+
BlueprintName = "OAuth2macOS"
2020
ReferencedContainer = "container:OAuth2.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
@@ -58,7 +58,7 @@
5858
BuildableIdentifier = "primary"
5959
BlueprintIdentifier = "EEE209461942772800736F1A"
6060
BuildableName = "OAuth2.framework"
61-
BlueprintName = "OAuth2OSX"
61+
BlueprintName = "OAuth2macOS"
6262
ReferencedContainer = "container:OAuth2.xcodeproj">
6363
</BuildableReference>
6464
</MacroExpansion>
@@ -80,7 +80,7 @@
8080
BuildableIdentifier = "primary"
8181
BlueprintIdentifier = "EEE209461942772800736F1A"
8282
BuildableName = "OAuth2.framework"
83-
BlueprintName = "OAuth2OSX"
83+
BlueprintName = "OAuth2macOS"
8484
ReferencedContainer = "container:OAuth2.xcodeproj">
8585
</BuildableReference>
8686
</MacroExpansion>
@@ -98,7 +98,7 @@
9898
BuildableIdentifier = "primary"
9999
BlueprintIdentifier = "EEE209461942772800736F1A"
100100
BuildableName = "OAuth2.framework"
101-
BlueprintName = "OAuth2OSX"
101+
BlueprintName = "OAuth2macOS"
102102
ReferencedContainer = "container:OAuth2.xcodeproj">
103103
</BuildableReference>
104104
</MacroExpansion>

Package.swift

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
//
2+
// Package.swift
3+
// OAuth2
4+
//
5+
// Created by Pascal Pfiffner on 12/19/15.
6+
// Copyright 2015 Pascal Pfiffner
7+
//
8+
// Licensed under the Apache License, Version 2.0 (the "License");
9+
// you may not use this file except in compliance with the License.
10+
// You may obtain a copy of the License at
11+
//
12+
// http://www.apache.org/licenses/LICENSE-2.0
13+
//
14+
// Unless required by applicable law or agreed to in writing, software
15+
// distributed under the License is distributed on an "AS IS" BASIS,
16+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
// See the License for the specific language governing permissions and
18+
// limitations under the License.
19+
//
20+
21+
import PackageDescription
22+
23+
let package = Package(
24+
name: "OAuth2",
25+
targets: [
26+
Target(name: "SwiftKeychain"),
27+
Target(name: "Base", dependencies: [.Target(name: "SwiftKeychain")]),
28+
Target(name: "macOS", dependencies: [.Target(name: "Base")]),
29+
Target(name: "Flows", dependencies: [.Target(name: "macOS")]),
30+
Target(name: "DataLoader", dependencies: [.Target(name: "Flows")]),
31+
],
32+
dependencies: [
33+
// SwiftKeychain is not yet available as a Package, so we symlink to /Sources and make it a Target
34+
//.Package(url: "https://github.com/yankodimitrov/SwiftKeychain.git", majorVersion: 1),
35+
]
36+
)

0 commit comments

Comments
 (0)