Skip to content

zhulh200868/MyCookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Use the Python3
---
title: 'Auth Session'
apiurl: '/api/v1/user/auth_session'
type: 'GET'
layout: default
---

透过Session检查去判定使用者可否存取资源

### RequestHeader
透过RequestHeader 的 Apitoken做验证


```"RequestHeader": {
  "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  "X-Forwarded-For": " 127.0.0.1"}
  ```

### Response

Session 为有效</br>
```Status: 200```
```{"message":"session is vaild!"}```

For errors responses, see the [response status codes documentation](#/response-status-codes).

About

As Python Cookbook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages