BigW Consortium Gitlab

session.md 714 Bytes
Newer Older
1 2
# Session

3 4 5 6 7 8 9 10
Login to get private token

```
POST /session
```

Parameters:

Ciro Santilli committed
11 12 13
- `login` (required) - The login of user
- `email` (required if login missing) - The email of user
- `password` (required) - Valid password
14

Ciro Santilli committed
15
**You can login with both GitLab and LDAP credentials now**
16

Dmitriy Zaporozhets committed
17

18 19 20
```json
{
  "id": 1,
21
  "username": "john_smith",
22 23 24
  "email": "john@example.com",
  "name": "John Smith",
  "private_token": "dd34asd13as",
Alex Denisov committed
25
  "blocked": false,
26
  "created_at": "2012-05-23T08:00:58Z",
Alex Denisov committed
27 28 29 30
  "bio": null,
  "skype": "",
  "linkedin": "",
  "twitter": "",
Jerome Dalbert committed
31
  "website_url": "",
Alex Denisov committed
32
  "dark_scheme": false,
33
  "theme_id": 1,
Alex Denisov committed
34
  "is_admin": false,
35 36 37
  "can_create_group": true,
  "can_create_team": true,
  "can_create_project": true
38 39
}
```