Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated swift lib to version 0.2.0 #6

Merged
merged 1 commit into from
Feb 16, 2015
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
42 changes: 22 additions & 20 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,26 +85,28 @@
</dict>
</array>
</config-file>
<source-file src="src/ios/AeroGearHttp.h" />
<source-file src="src/ios/AccountManager.swift" />
<source-file src="src/ios/AuthzModule.swift" />
<source-file src="src/ios/Config.swift" />
<source-file src="src/ios/DateUtils.swift" />
<source-file src="src/ios/FacebookOAuth2Module.swift" />
<source-file src="src/ios/Http.swift" />
<source-file src="src/ios/HttpRequestSerializer.swift" />
<source-file src="src/ios/JsonRequestSerializer.swift" />
<source-file src="src/ios/JsonResponseSerializer.swift" />
<source-file src="src/ios/KeycloakOAuth2Module.swift" />
<source-file src="src/ios/MultiPartData.swift" />
<source-file src="src/ios/OAuth2Module.swift" />
<source-file src="src/ios/OAuth2Session.swift" />
<source-file src="src/ios/RequestSerializer.swift" />
<source-file src="src/ios/ResponseSerializer.swift" />
<source-file src="src/ios/StringResponseSerializer.swift" />
<source-file src="src/ios/TrustedPersistantOAuth2Session.swift" />
<source-file src="src/ios/UntrustedMemoryOAuth2Session.swift" />
<source-file src="src/ios/Utils.swift" />

<source-file src="src/ios/http-0.2.0/AuthzModule.swift" />
<source-file src="src/ios/http-0.2.0/Http.swift" />
<source-file src="src/ios/http-0.2.0/HttpRequestSerializer.swift" />
<source-file src="src/ios/http-0.2.0/JsonRequestSerializer.swift" />
<source-file src="src/ios/http-0.2.0/JsonResponseSerializer.swift" />
<source-file src="src/ios/http-0.2.0/MultiPartData.swift" />
<source-file src="src/ios/http-0.2.0/RequestSerializer.swift" />
<source-file src="src/ios/http-0.2.0/ResponseSerializer.swift" />
<source-file src="src/ios/http-0.2.0/StringResponseSerializer.swift" />
<source-file src="src/ios/http-0.2.0/Utils.swift" />

<source-file src="src/ios/oauth-0.2.0/AccountManager.swift" />
<source-file src="src/ios/oauth-0.2.0/Config.swift" />
<source-file src="src/ios/oauth-0.2.0/DateUtils.swift" />
<source-file src="src/ios/oauth-0.2.0/FacebookOAuth2Module.swift" />
<source-file src="src/ios/oauth-0.2.0/KeycloakOAuth2Module.swift" />
<source-file src="src/ios/oauth-0.2.0/OAuth2Module.swift" />
<source-file src="src/ios/oauth-0.2.0/OAuth2Session.swift" />
<source-file src="src/ios/oauth-0.2.0/OpenIDClaim.swift" />
<source-file src="src/ios/oauth-0.2.0/TrustedPersistantOAuth2Session.swift" />
<source-file src="src/ios/oauth-0.2.0/UntrustedMemoryOAuth2Session.swift" />

<source-file src="src/ios/Bridging-Header.h" />
<source-file src="src/ios/OAuth2Plugin.swift" />
Expand Down
28 changes: 0 additions & 28 deletions src/ios/AeroGearHttp.h

This file was deleted.

1 change: 0 additions & 1 deletion src/ios/AppDelegate+url.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/

#import "AppDelegate+url.h"
#import "AeroGearHttp.h"
#import <objc/runtime.h>

@implementation AppDelegate (url)
Expand Down
20 changes: 10 additions & 10 deletions src/ios/AuthzModule.swift → src/ios/http-0.2.0/AuthzModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,56 +18,56 @@
import Foundation

/**
The protocol that authorization modules must adhere to
The protocol that authorization modules must adhere to.
*/
public protocol AuthzModule {

/**
Gateway to request authorization access
Gateway to request authorization access.
:param: completionHandler A block object to be executed when the request operation finishes.
*/
func requestAccess(completionHandler: (AnyObject?, NSError?) -> Void)

/**
Request an authorization code
Request an authorization code.
:param: completionHandler A block object to be executed when the request operation finishes.
*/
func requestAuthorizationCode(completionHandler: (AnyObject?, NSError?) -> Void)

/**
Exchange an authorization code for an access token
Exchange an authorization code for an access token.
:param: completionHandler A block object to be executed when the request operation finishes.
*/
func exchangeAuthorizationCodeForAccessToken(code: String, completionHandler: (AnyObject?, NSError?) -> Void)

/**
Request to refresh an access token
Request to refresh an access token.
:param: completionHandler A block object to be executed when the request operation finishes.
*/
func refreshAccessToken(completionHandler: (AnyObject?, NSError?) -> Void)

/**
Request to revoke access
Request to revoke access.
:param: completionHandler A block object to be executed when the request operation finishes.
*/
func revokeAccess(completionHandler: (AnyObject?, NSError?) -> Void)

/**
Return any authorization fields
Return any authorization fields.
:returns: a dictionary filled with the authorization fields
:returns: a dictionary filled with the authorization fields.
*/
func authorizationFields() -> [String: String]?

/**
Returns a boolean indicating whether authorization has been granted
Returns a boolean indicating whether authorization has been granted.
:returns: true if authorized, false otherwise
:returns: true if authorized, false otherwise.
*/
func isAuthorized() -> Bool

Expand Down