Sha256: efa4649bc3465d44c6a103bb019a37c2cd08e4e57deeae680921f8f70a808a15

Contents?: true

Size: 1.19 KB

Versions: 394

Compression:

Stored size: 1.19 KB

Contents

# Session

## Example Session Object

```
{
  "id": "60525f92e859c4c3d74cb02fd176b1525901b525",
  "language": "en",
  "read_only": true,
  "sftp_insecure_ciphers": true
}
```

* `id` (string): Session ID
* `language` (string): Session language
* `read_only` (boolean): Is this session read only?
* `sftp_insecure_ciphers` (boolean): Are insecure SFTP ciphers allowed for this user? (If this is set to true, the site administrator has signaled that it is ok to use less secure SSH ciphers for this user.)
* `username` (string): Username to sign in as
* `password` (string): Password for sign in
* `otp` (string): If this user has a 2FA device, provide its OTP or code here.
* `partial_session_id` (string): Identifier for a partially-completed login


---

## Create user session (log in)

```
Files::Session.create(
  username: "username", 
  password: "password", 
  otp: "123456"
)
```

### Parameters

* `username` (string): Username to sign in as
* `password` (string): Password for sign in
* `otp` (string): If this user has a 2FA device, provide its OTP or code here.
* `partial_session_id` (string): Identifier for a partially-completed login


---

## Delete user session (log out)

```
Files::Session.delete
```

Version data entries

394 entries across 394 versions & 1 rubygems

Version Path
files.com-1.1.180 docs/session.md
files.com-1.1.179 docs/session.md
files.com-1.1.178 docs/session.md
files.com-1.1.177 docs/session.md
files.com-1.1.176 docs/session.md
files.com-1.1.175 docs/session.md
files.com-1.1.174 docs/session.md
files.com-1.1.173 docs/session.md
files.com-1.1.172 docs/session.md
files.com-1.1.171 docs/session.md
files.com-1.1.170 docs/session.md
files.com-1.1.169 docs/session.md
files.com-1.1.168 docs/session.md
files.com-1.1.167 docs/session.md
files.com-1.1.166 docs/session.md
files.com-1.1.165 docs/session.md
files.com-1.1.164 docs/session.md
files.com-1.1.163 docs/session.md
files.com-1.1.162 docs/session.md
files.com-1.1.161 docs/session.md