LoginAuthType Constants Reference
| Declared in | ECLoginInfo.h |
|---|
LoginAuthType
登录认证类型
Definition
typedef NS_ENUM(NSUInteger, LoginAuthType ) {
LoginAuthType_NormalAuth = 1,
LoginAuthType_PasswordAuth = 3,
LoginAuthType_MD5TokenAuth = 4,
LoginAuthType_TempPasswordAuth = 5,
};
Constants
LoginAuthType_NormalAuth-
正常认证模式,服务器认证appKey、appToken、username字段 默认值
Declared In
ECLoginInfo.h. LoginAuthType_PasswordAuth-
密码认证模式,服务器认证appKey、username、userPassword字段
Declared In
ECLoginInfo.h. LoginAuthType_MD5TokenAuth-
MD5 Token认证方式,服务器认证appKey、username、timestamp、MD5Token字段 (该鉴权方式是最安全的方式,用户在自己的服务器根据规则生成MD5,在不暴露apptoken的情况下进行鉴权,且生成的MD5 Token在平台上有失效时间)
Declared In
ECLoginInfo.h. LoginAuthType_TempPasswordAuth-
临时密码认证模式(临时密码有一定的有效期,有效期过后需要重新生成临时密码进行认证)
Declared In
ECLoginInfo.h.
Declared In
ECLoginInfo.h