gitlab-org--gitlab-foss/doc/api/session.md

40 lines
714 B
Markdown
Raw Normal View History

2014-05-27 12:12:15 +00:00
# Session
Login to get private token
```
POST /session
```
Parameters:
2014-08-15 07:03:18 +00:00
- `login` (required) - The login of user
- `email` (required if login missing) - The email of user
- `password` (required) - Valid password
2014-08-15 07:03:18 +00:00
**You can login with both GitLab and LDAP credentials now**
2013-07-16 08:50:00 +00:00
```json
{
"id": 1,
"username": "john_smith",
"email": "john@example.com",
"name": "John Smith",
"private_token": "dd34asd13as",
2013-03-18 21:06:24 +00:00
"blocked": false,
"created_at": "2012-05-23T08:00:58Z",
2013-03-18 21:06:24 +00:00
"bio": null,
"skype": "",
"linkedin": "",
"twitter": "",
2014-01-18 19:07:00 +00:00
"website_url": "",
2013-03-18 21:06:24 +00:00
"dark_scheme": false,
2013-08-30 19:04:26 +00:00
"theme_id": 1,
2013-03-18 21:06:24 +00:00
"is_admin": false,
2014-04-05 06:36:47 +00:00
"can_create_group": true,
"can_create_team": true,
"can_create_project": true
}
```