Skip to content

Commit

Permalink
add user cancel callback
Browse files Browse the repository at this point in the history
  • Loading branch information
HanBin-Kim committed May 3, 2018
1 parent b3cd053 commit 4f24c66
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions NaverIDLoginSample/SampleOAuthViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ - (void)didClickCheckNidTokenBtn:(SampleOAuthView *)view {
[_mainView setResultLabelText:@"로그인 하세요."];
return;
}
//xml
//NSString *urlString = @"https://openapi.naver.com/v1/nid/getUserProfile.xml"; // 아이디 호출
//json
//xml
//NSString *urlString = @"https://openapi.naver.com/v1/nid/getUserProfile.xml"; // 사용자 프로필 호출
//json
NSString *urlString = @"https://openapi.naver.com/v1/nid/me";

NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:urlString]];
Expand Down Expand Up @@ -157,10 +157,10 @@ - (void)didClickGetUserProfileBtn:(SampleOAuthView *)view {
[_mainView setResultLabelText:@"로그인 하세요."];
return;
}

//xml
//xml
//NSString *urlString = @"https://openapi.naver.com/v1/nid/getUserProfile.xml"; // 사용자 프로필 호출
//json
//json
NSString *urlString = @"https://openapi.naver.com/v1/nid/me";

NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:urlString]];
Expand Down Expand Up @@ -252,4 +252,6 @@ - (void)oauth20Connection:(NaverThirdPartyLoginConnection *)oauthConnection didF
NSLog(@"NaverApp login fail handler");
}



@end
Binary file modified NaverThirdPartyLogin.framework/Info.plist
Binary file not shown.
Binary file modified NaverThirdPartyLogin.framework/NaverThirdPartyLogin
Binary file not shown.

0 comments on commit 4f24c66

Please sign in to comment.