Logging Out; Who Am I - Multitech MultiConnect rCell MTR-H5 Developer's Manual

Multiconnect rcell api cellular router
Hide thumbs Also See for MultiConnect rCell MTR-H5:
Table of Contents

Advertisement

2
REQUESTS
4
5
" code "
:
200
,
6
" result "
:
7
" address "
:
"192.16 8.2.1 03"
8
" permission "
9
" port "
:
"59486"
10
" timestamp "
:
11
" token "
:
" B 7 0 8 3 A 0 B 1 4 C 0 F 0 B E F F B E D 8 9 B 9 9 E F B C "
12
" user "
:
" admin "
13
,
14
" status "
:
" success "
15
A token may timeout due to inactivity. The timeout configuration is in the rCell's Remote Access collection (
api/remoteAccess/timeoutSeconds ). There are two authorizers, one for website access and one for non-web
browser usage, such as command line utilities like wget and curl. The same user can not be logged in through the
same authorizer from more than one IP address. If a user is already logged in and attempts to login from another
IP address, a conflict error will be returned. A user can logout from any IP address with the proper credentials.
2.3

Logging Out

The logout call requires that the caller has equal or greater permissions than the user they are logging out. If a
user wants to logout, they can pass their authorized token in the following call:
Example:. https://192.168.2.1/api/logout?token=ABCDEF1234567890ABCDEF12345678
To logout another user (guest), a user with equal or greater permissions can use their token to authorize the call:
Example: https://192.168.2.1/api/logout?logoutUser=guest&token=ABCDEF1234567890ABCDEF12345678
Credentials can also be passed with the logout command to authorize the logout call of another user:
Example: https://192.168.2.1/api/logout?username=admin&password=admin&logoutUser=guest
2.4

Who Am I

At any point, a user can retrieve their session information using the following API call:
Example:
1
GET https://192.168.2.1/api/whoami
2
3
Status
:
HTTP /1.1 200 OK
4
5
" code "
:
200
,
6
" result "
:
7
" address "
:
"192.16 8.2.1 03"
" permission "
8
9
" port "
:
"59486"
10
" timestamp "
:
11
" token "
:
" B 7 0 8 3 A 0 B 1 4 C 0 F 0 B E F F B E D 8 9 B 9 9 E F B C "
12
" user "
:
" admin "
13
,
14
" status "
:
" success "
15
Multi-Tech Systems, Inc. MultiConnect
,
:
" admin "
,
,
"2
:
58
:
40
:
389"
,
,
:
" admin "
,
,
"2
:
58
:
40
:
389"
,
R
rCell API Developer Guide
,
,
7

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MultiConnect rCell MTR-H5 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Multiconnect rcell mtr-h6Multiconnect rcell mtr-g3Multiconnect rcell mtr-ev3Multiconnect rcell mtr-c2Multiconnect rcell mtr-h6Multiconnect rcell mtr-g3 ... Show all

Table of Contents