Logging out
From DreamFactory
Tracyosborn (Talk | contribs) m (Changed note block from code to content and updated order of examples and their details) |
|||
Line 1: | Line 1: | ||
=== Tutorial === | === Tutorial === | ||
− | There are two APIs available for logging out of an authenticated session | + | There are two APIs available for logging out of an authenticated session: |
* DELETE api/v2/system/admin/session | * DELETE api/v2/system/admin/session | ||
* DELETE api/v2/user/session | * DELETE api/v2/user/session | ||
Line 14: | Line 14: | ||
− | + | '''''Note:''' Session token can also be supplied using X-DreamFactory-Session-Token request header.'' | |
=== Example - Logging out === | === Example - Logging out === | ||
− | |||
− | |||
<pre>DELETE https://foo.com/api/v2/system/admin/session?session_token=abc.123.efg</pre> | <pre>DELETE https://foo.com/api/v2/system/admin/session?session_token=abc.123.efg</pre> | ||
Line 25: | Line 23: | ||
<pre>DELETE https://foo.com/api/v2/user/session?session_token=abc.123.efg</pre> | <pre>DELETE https://foo.com/api/v2/user/session?session_token=abc.123.efg</pre> | ||
+ | |||
+ | * Session Token: abc.123.efg |
Revision as of 23:09, 5 May 2016
Tutorial
There are two APIs available for logging out of an authenticated session:
- DELETE api/v2/system/admin/session
- DELETE api/v2/user/session
API Endpoints
DELETE https://{url}/api/v2/system/admin/session?session_token={jwt_session_token_to_blacklist}
-- OR --
DELETE https://{url}/api/v2/user/session?session_token={jwt_session_token_to_blacklist}
Note: Session token can also be supplied using X-DreamFactory-Session-Token request header.
Example - Logging out
DELETE https://foo.com/api/v2/system/admin/session?session_token=abc.123.efg
-- OR --
DELETE https://foo.com/api/v2/user/session?session_token=abc.123.efg
- Session Token: abc.123.efg