Skip to content

Commit 089ec9f

Browse files
committed
address comments
1 parent 3117678 commit 089ec9f

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

IdentityCore/src/MSIDError.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ MSIDErrorCode MSIDErrorCodeForOAuthError(NSString *oauthError, MSIDErrorCode def
8484

8585
// Authority Validation Errors
8686
@(MSIDErrorAuthorityValidation),
87-
@(MSIDErrorAuthorityValidation),
88-
@(MSIDErrorAuthorityValidation),
8987

9088
// Interactive flow errors
9189
@(MSIDErrorAuthorizationFailed),

IdentityCore/src/webview/MSIDWebviewAuthorization.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ + (void)startSession:(MSIDWebviewSession *)session
8383
// check session nil
8484
if (!session)
8585
{
86-
NSError *error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInvalidDeveloperParameter, @"Interactive session failed to create.", nil, nil, nil, context.correlationId, nil);
86+
NSError *error = MSIDCreateError(MSIDErrorDomain, MSIDErrorInternal, @"Interactive session failed to create.", nil, nil, nil, context.correlationId, nil);
8787
completionHandler(nil, error);
8888
return;
8989
}

IdentityCore/src/webview/embeddedWebview/ui/ios/MSIDWebviewUIController.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,15 @@ - (UIActivityIndicatorView *)prepareLoadingIndicator:(UIView *)rootView
170170
return loadingIndicator;
171171
}
172172

173+
// This is reserved for subclass to handle programatic cancellation.
173174
- (void)cancel
174175
{
175176
// Overridden in subclass with cancel logic
176177
}
177178

178179
- (void)userCancel
179180
{
180-
// Overridden in subclass with cancel logic
181+
// Overridden in subclass with userCancel logic
181182
}
182183

183184
#pragma mark - Background task

IdentityCore/src/webview/embeddedWebview/ui/mac/MSIDWebviewUIController.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,15 @@ - (NSProgressIndicator *)prepareLoadingIndicator
166166
return loadingIndicator;
167167
}
168168

169+
// This is reserved for subclass to handle programatic cancellation.
169170
- (void)cancel
170171
{
171172
// Overridden in subclass with cancel logic
172173
}
173174

174175
- (void)userCancel
175176
{
176-
// Overridden in subclass with cancel logic
177+
// Overridden in subclass with userCancel logic
177178
}
178179

179180

IdentityCore/tests/MSIDWebviewAuthorizationTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ - (void)testStartSession_whenSessionIsNil_shouldReturnErrorAtCompletionHandler
7979
completionHandler:^(MSIDWebviewResponse *response, NSError *error) {
8080
XCTAssertNil(response);
8181
XCTAssertNotNil(error);
82-
XCTAssertEqual(error.code, MSIDErrorInvalidDeveloperParameter);
82+
XCTAssertEqual(error.code, MSIDErrorInternal);
8383

8484
[expectation fulfill];
8585
}];

0 commit comments

Comments
 (0)