Latest 1.4.0
Homepage https://github.com/STracker/HawkClient_iOS
License MIT
Platforms ios 5.0, requires ARC
Dependencies Base64
Authors

HawkClient iOS

This project is an implementation of Hawk client for iOS. For more information visit hueniverse/hawk.
This client don’t use the port number when generates the MAC because some hosts services use load balancing.
It is also available in this project, the function for creating a nonce and the function for get the timestamp in seconds from UTC.

Installation

From Cocoapods.

Usage

With this client is possible to make a request with and without payload validation.
Example without payload validation:


NSString *header = [HawkClient generateAuthorizationHeader:url method:method timestamp:timestamp nonce:nonce credentials:credentials ext:ext payload:ext payloadValidation:NO];

Example with payload validation:

 
NSString *header = [HawkClient generateAuthorizationHeader:url method:method timestamp:timestamp nonce:nonce credentials:credentials ext:ext payload:payload payloadValidation:YES];
  

See unit tests project if you still in doubt.

Dependencies

Latest podspec

{
    "name": "HawkClient",
    "version": "1.4.0",
    "summary": "Implementation of Hawk protocol for clients in iOS.",
    "homepage": "https://github.com/STracker/HawkClient_iOS",
    "authors": {
        "ricardosousa1989": "[email protected]"
    },
    "source": {
        "git": "https://github.com/STracker/HawkClient_iOS.git",
        "tag": "1.4.0"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "platforms": {
        "ios": "5.0"
    },
    "dependencies": {
        "Base64": [
            "~> 1.0.1"
        ]
    },
    "source_files": "HawkClientIOS/HawkClient_iOS/HawkClient_iOS/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This