Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: 升级钉钉 SDK #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@
*/
+ (BOOL)isDingTalkSupportOpenAPI;

/**
检测设备安装的钉钉是否支持钉钉SSO授权.

@return YES 设备安装的钉钉客户端支持钉钉SSO授权. NO 设备安装的钉钉客户端不支持钉钉SSO授权.
*/
+ (BOOL)isDingTalkSupportSSO;

/**
获取钉钉在AppStore的安装地址.

Expand All @@ -114,6 +121,13 @@
*/
+ (BOOL)openDingTalk;

/**
打开支持SSO授权的钉钉客户端

@return YES 成功打开钉钉客户端. NO 未能打开钉钉客户端.
*/
+ (BOOL)openDingTalkForSSO;


/**
发送请求到钉钉, 钉钉处理完请求后会回调第三方APP, 第三方APP需在 -[DTOpenAPIDelegate onReq:] 处理钉钉的响应结果.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,42 @@ typedef NS_ENUM(NSInteger, DTScene)
@property (nonatomic, copy) NSString *errorMessage;
@end

@interface DTAuthorizeReq : DTBaseReq

/**
钉钉开放平台第三方应用授权回调页地址
@warning 必须保证和在钉钉开放平台应用管理界面配置的“授权回调页”地址一致
*/

@property (nonatomic, copy) NSString *redirectURI;

/**
钉钉开放平台第三方应用bundleId
*/

@property (nonatomic, copy) NSString *bundleId;


/**
当用户没有安装钉钉客户端或钉钉客户端过低无法支持SSO的时候,返回给应用处理

默认为YES
*/
@property (nonatomic, copy) void (^shouldShowWebViewForAuthIfCannotSSO)();

@end

/**
钉钉客户端处理完第三方应用的认证申请后向第三方应用回送的处理结果
*/
@interface DTAuthorizeResp : DTBaseResp

/**
临时授权码
*/
@property (nonatomic, copy) NSString *accessCode;

@end


///-----------------------------------------------------------------------------
Expand Down