WifiDog 认证协议研究之 Auth Server_Tomcat, WebLogic及J2EE讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  Tomcat, WebLogic及J2EE讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 2316 | 回复: 0   主题: WifiDog 认证协议研究之 Auth Server        下一篇 
第五种族
注册用户
等级:列兵
经验:103
发帖:78
精华:0
注册:2011-11-3
状态:离线
发送短消息息给第五种族 加好友    发送短消息息给第五种族 发消息
发表于: IP:您无权察看 2015-4-1 10:49:39 | [全部帖] [楼主帖] 楼主

认证流程如下图:

北京联动北方科技有限公司

认证流程详解:

1.Login登录(参照 login/index.php)

服务器验证后,Redirect to GW,携带 token

http://$_REQUEST[gw_address]:$_REQUEST[gw_port]/wifidog/auth?token=$token
2.Validation of ID


服务器返回 Status

Auth: 1


Messages: | 认证信息(如错误之类的消息)

common.php中有如下定义:

/* Constant shared with the gateway
· NEVER edit these, as they mush match the C code of the gateway */
define('ACCOUNT_STATUS_ERROR', -1);
define('ACCOUNT_STATUS_DENIED', 0);
define('ACCOUNT_STATUS_ALLOWED', 1);
define('ACCOUNT_STATUS_VALIDATION', 5);
define('ACCOUNT_STATUS_VALIDATION_FAILED', 6);
define('ACCOUNT_STATUS_LOCKED', 254);


auth.h中也有相应定义:

/**
* @brief Authentication codes returned by auth server.
*
* Authentication result codes returned by auth_server_request() corresponding
* to result code from the central server itself.
*/
typedef enum {
      AUTH_ERROR = -1, /**< An error occured during the validation process*/
      AUTH_DENIED = 0, /**< Client was denied by the auth server */
      AUTH_ALLOWED = 1, /**< Client was granted access by the auth server */
      AUTH_VALIDATION = 5, /**< A misnomer. Client is in 15 min probation to validate his new account */
      AUTH_VALIDATION_FAILED = 6, /**< Client had X minutes to validate account by email and didn't = too late */
      AUTH_LOCKED = 254 /**< Account has been locked */
} t_authcode;


--转自 北京联动北方科技有限公司




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论