Skip to content

Commit bcd8adb

Browse files
committed
Merge branch 'release/1.2.1'
2 parents 93533dd + 0b12d73 commit bcd8adb

File tree

3 files changed

+40
-10
lines changed

3 files changed

+40
-10
lines changed

NXOAuth2Client.podspec

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,41 @@
11
Pod::Spec.new do |s|
22
s.name = 'NXOAuth2Client'
3-
s.version = '1.2.0'
4-
s.license = 'BSD'
5-
s.summary = 'Client library for OAuth2 (currently built against draft 10 of the OAuth2 spec)'
3+
s.version = '1.2.1'
4+
s.license = {
5+
:type => 'BSD',
6+
:text => <<-LICENSETEXT
7+
Copyright © 2012, nxtbgthng GmbH
8+
9+
All rights reserved.
10+
11+
Redistribution and use in source and binary forms, with or without
12+
modification, are permitted provided that the following conditions are met:
13+
14+
* Redistributions of source code must retain the above copyright
15+
notice, this list of conditions and the following disclaimer.
16+
* Redistributions in binary form must reproduce the above copyright
17+
notice, this list of conditions and the following disclaimer in the
18+
documentation and/or other materials provided with the distribution.
19+
* Neither the name of nxtbgthng nor the
20+
names of its contributors may be used to endorse or promote products
21+
derived from this software without specific prior written permission.
22+
23+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
24+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26+
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
27+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33+
LICENSETEXT
34+
}
35+
s.summary = 'Client library for OAuth2 (currently built against draft 10 of the OAuth2 spec).'
636
s.homepage = 'https://github.com/nxtbgthng/OAuth2Client'
737
s.author = { 'nxtbgthng' => '[email protected]'}
8-
s.source = { :git => 'https://github.com/nxtbgthng/OAuth2Client.git', :tag => 'v1.2.0' }
38+
s.source = { :git => 'https://github.com/nxtbgthng/OAuth2Client.git', :tag => 'v1.2.1' }
939
s.source_files = 'NXOAuth2Account+Private.h', 'Sources/', 'Sources/OAuth2Client/'
1040
s.frameworks = 'Security'
1141
s.requires_arc = true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ NSURLRequest *sigendRequest = [theRequest signedURLRequest];
181181

182182
## BSD License
183183

184-
Copyright © 2010, nxtbgthng
184+
Copyright © 2012, nxtbgthng GmbH
185185

186186
All rights reserved.
187187

Sources/OAuth2Client/NXOAuth2Client.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,11 @@ - (void)authenticateWithUsername:(NSString *)username password:(NSString *)passw
331331
}
332332

333333
// Assertion
334-
- (void)authenticateWithAssertionType:(NSURL *)assertionType assertion:(NSString *)assertion;
334+
- (void)authenticateWithAssertionType:(NSURL *)anAssertionType assertion:(NSString *)anAssertion;
335335
{
336336
NSAssert1(!authConnection, @"authConnection already running with: %@", authConnection);
337-
NSParameterAssert(assertionType);
338-
NSParameterAssert(assertion);
337+
NSParameterAssert(anAssertionType);
338+
NSParameterAssert(anAssertion);
339339

340340
NSMutableURLRequest *tokenRequest = [NSMutableURLRequest requestWithURL:tokenURL];
341341
[tokenRequest setHTTPMethod:@"POST"];
@@ -347,8 +347,8 @@ - (void)authenticateWithAssertionType:(NSURL *)assertionType assertion:(NSString
347347
@"assertion", @"grant_type",
348348
clientId, @"client_id",
349349
clientSecret, @"client_secret",
350-
assertionType.absoluteString, @"assertion_type",
351-
assertion, @"assertion",
350+
anAssertionType.absoluteString, @"assertion_type",
351+
anAssertion, @"assertion",
352352
nil];
353353
if (self.desiredScope) {
354354
[parameters setObject:[[self.desiredScope allObjects] componentsJoinedByString:@" "] forKey:@"scope"];

0 commit comments

Comments
 (0)