Skip to content

Commit 7c35667

Browse files
committed
Merge pull request #240 from AzureAD/enroll_fix
enroll button fix
2 parents 0237a93 + 87b458c commit 7c35667

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

ADALiOS.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "ADALiOS"
3-
s.version = "1.1.11"
3+
s.version = "1.1.12"
44
s.summary = "The ADAL SDK for iOS gives you the ability to add Azure Identity authentication to your application"
55

66
s.description = <<-DESC

ADALiOS/ADALiOS/ADALiOS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
//version in static define until we identify a better place:
2121
#define ADAL_VER_HIGH 1
2222
#define ADAL_VER_LOW 1
23-
#define ADAL_VER_PATCH 11
23+
#define ADAL_VER_PATCH 12
2424

2525
#import "ADLogger.h"
2626
#import "ADErrorCodes.h"

ADALiOS/ADALiOS/ADAuthenticationWebViewController.m

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,13 @@ - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)
115115
//DebugLog( @"URL: %@", request.URL.absoluteString );
116116
NSString *requestURL = [request.URL absoluteString];
117117

118+
119+
if ([[[request.URL scheme] lowercaseString] isEqualToString:@"browser"]) {
120+
requestURL = [requestURL stringByReplacingOccurrencesOfString:@"browser://" withString:@"https://"];
121+
[[UIApplication sharedApplication] openURL:[[NSURL alloc] initWithString:requestURL]];
122+
return NO;
123+
}
124+
118125
// check for pkeyauth challenge.
119126
if ([requestURL hasPrefix: pKeyAuthUrn] )
120127
{
@@ -150,12 +157,6 @@ - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)
150157
return NO;
151158
}
152159

153-
if ([[[request.URL scheme] lowercaseString] isEqualToString:@"browser"] && navigationType == UIWebViewNavigationTypeLinkClicked) {
154-
requestURL = [requestURL stringByReplacingOccurrencesOfString:@"browser://" withString:@"https://"];
155-
[[UIApplication sharedApplication] openURL:[[NSURL alloc] initWithString:requestURL]];
156-
return NO;
157-
}
158-
159160
return YES;
160161
}
161162

ADALiOS/ADALiOS/ADRegistrationInformation.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ -(void) releaseData{
7878
}
7979

8080
if(_certificateSubject){
81-
CFRelease((__bridge CFTypeRef)(_certificateSubject));
8281
_certificateSubject = nil;
8382
}
8483

@@ -87,7 +86,6 @@ -(void) releaseData{
8786
}
8887

8988
if(_userPrincipalName){
90-
CFRelease((__bridge CFTypeRef)(_userPrincipalName));
9189
_userPrincipalName = nil;
9290
}
9391

changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Version 1.1.12
2+
--------------
3+
* Fix to ignore navigation type in the webview. It was blocking users from enrolling their device.
4+
15
Version 1.1.11
26
--------------
37
This release contains bug fixes and updates for an improved developer experience. Given below is the changelist -

0 commit comments

Comments
 (0)