-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcredential.py
More file actions
50 lines (34 loc) · 1.47 KB
/
credential.py
File metadata and controls
50 lines (34 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Optional
from datetime import datetime
from .._models import BaseModel
__all__ = ["Credential"]
class Credential(BaseModel):
"""A stored credential for automatic re-authentication"""
id: str
"""Unique identifier for the credential"""
created_at: datetime
"""When the credential was created"""
domain: str
"""Target domain this credential is for"""
name: str
"""Unique name for the credential within the organization"""
updated_at: datetime
"""When the credential was last updated"""
has_totp_secret: Optional[bool] = None
"""Whether this credential has a TOTP secret configured for automatic 2FA"""
has_values: Optional[bool] = None
"""Whether this credential has stored values (email, password, etc.)"""
sso_provider: Optional[str] = None
"""
If set, indicates this credential should be used with the specified SSO provider
(e.g., google, github, microsoft). When the target site has a matching SSO
button, it will be clicked first before filling credential values on the
identity provider's login page.
"""
totp_code: Optional[str] = None
"""Current 6-digit TOTP code.
Only included in create/update responses when totp_secret was just set.
"""
totp_code_expires_at: Optional[datetime] = None
"""When the totp_code expires. Only included when totp_code is present."""