AdminWeb Menu customizing
AdminWeb support extention menu by adding it yourself.
This feature is only for enterprise server version.
Add menu
Administrator can add menus at "external menus" in setup screen.
- Common menu : They are appeared user and operator's adminWeb both.
- User menu : They are appeared user's adminWeb(8080, 8088 port).
- Operator menu : They are appeared operator's adminWeb(80, 443 port).
Link types.
- Link : It will be appeared on a new popup window link.
- Embedded : It will be appeared in below area. The top menu will show continuously. It is in iframe tag.
User authentication on the external page.
(3) View the external page.
http://x.x.x.x/externalPage?yourparameters&type=op&sid=234&token=b210a4cd328&userId=user1@ourcompany.com | |
type | op:on operator, user:on user |
---|---|
sid | user's seesion id |
token | user's seesion token |
userId | user's id |
(4) To verify user token, you have to use below API.
Check SSO
Check user's token. Please see the OpenAPI specification.(link)
1) requestMethod | POST |
---|---|
URL | https://{CloudURL or YourServer's URL}/openapi/1/sso |
Body :
field name | type | description | option |
---|---|---|---|
id | string | company owner's id(email) | mandatory |
type | string | op : on operator, user : on user | mandatory |
sid | number | user's session id | mandatory |
token | string | user's session token | mandatory |
cip | string | client ip String clientIp = request.getRemoteAddr(); String forwardedIp = request.getHeader("X-Forwarded-IP"); if(forwardedIp!=null && forwardedIp.isEmpty()==false) clientIp = forwardedIp; | mandatory |
agent | string | client agent request.getHeader("User-Agent"); | mandatory |
Example :
{ "id" : "user1@ourcompany.com", "type" : "op", "no" : 234, "token" : "b210a4cd328", "cip" : "x.x.x.x", "agent" : "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" } |
field name | type | description | option |
---|---|---|---|
id | string | user/operator id | mandatory |
name | string | user/operator's name | mandatory |
dbid | number | user id in DB, (Server 5.1.x~) | mandatory |
type | number | user's type, (Server 5.1.x~) | mandatory |
level | number | user's level, (Server 5.1.x~) | mandatory |
Available error code :
code | description |
---|---|
401 | Token invalid |
403 | Request forbidden. parameter invalid |
Example :
{ "id" : "user1@ourcompany.com", "name": "user name" } |