forked from p2/OAuth2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CONTRIBUTORS and CONTRIBUTING. After merge fixes.
- Loading branch information
Showing
10 changed files
with
90 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Contributing | ||
============ | ||
|
||
For fixes, improvements and ideas, fork the repository and issue a pull request. | ||
To get a pull request accepted, please adhere to these two rules: | ||
|
||
- Work from the latest `develop` branch, unless it's a very small fix | ||
- Respect current code style (indent with tabs, compare to existing code for more clues) | ||
|
||
Ideally, only work on one feature at a time. | ||
If you've done work on the code (i.e. not just fixes to the README), add yourself to the top of [`CONTRIBUTORS.md`](./CONTRIBUTORS.md). | ||
|
||
Happy coding! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Contributors | ||
============ | ||
|
||
Contributors to the codebase, in reverse chronological order: | ||
|
||
David Kraus, @davidkraus | ||
Daniel Dengler, @ddengler | ||
Tyler Swartz, @tylerswartz | ||
Guilherme Rambo, @insidegui | ||
Glenn Schmidt, @glennschmidt | ||
Tomohiro Kumagai, @ez-net | ||
Tim Sneed, @trsneed | ||
Vojto Rinik, @vojto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,34 @@ | ||
import UIKit | ||
// | ||
// OAuth2+iOS.swift | ||
// OAuth2 | ||
// | ||
// Created by David Kraus on 11/26/15. | ||
// Copyright 2015 Pascal Pfiffner | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
|
||
extension OAuth2 { | ||
|
||
// no webview or webbrowser available on tvOS | ||
|
||
public final func openAuthorizeURLInBrowser(params: [String: String]? = nil) -> Bool { | ||
fatalError("Not implemented") | ||
} | ||
|
||
public func authorizeEmbeddedWith(config: OAuth2AuthConfig, params: [String: String]? = nil, autoDismiss: Bool = true) -> Bool { | ||
fatalError("Not implemented") | ||
public final func openAuthorizeURLInBrowser(params: OAuth2StringDict? = nil) throws { | ||
throw OAuth2Error.Generic("Not implemented") | ||
} | ||
|
||
public func authorizeEmbeddedFrom(controller: UIViewController, params: [String: String]?) -> AnyObject { | ||
fatalError("Not implemented") | ||
public func authorizeEmbeddedWith(config: OAuth2AuthConfig, params: OAuth2StringDict? = nil) throws { | ||
throw OAuth2Error.Generic("Not implemented") | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters