Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save two factor auth credentials #116

Open
keith opened this issue Aug 16, 2017 · 2 comments
Open

Save two factor auth credentials #116

keith opened this issue Aug 16, 2017 · 2 comments

Comments

@keith
Copy link
Member

keith commented Aug 16, 2017

The token received from one authentication is good for some time frame defined by the response JSON. We could store this so we don't have to re-ask for a few days(?)

@keith
Copy link
Member Author

keith commented Jan 15, 2018

Here's the format of the response that includes the TTL:

{
    "accessToken": "<secret>",
    "dsid": 12345,
    "firstName": "...",
    "lastName": "...",
    "nickName": "...",
    "tokenExpiresAt": "2018-01-16T09:24:58+0000",
    "tokenExpiresIn": "36000 Seconds",
    "tokenType": "User",
    "user": {
        "active": true,
        "appleConnectName": "...",
        "company": "...",
        "department": "...",
        "email": "...",
        "firstName": "...",
        "id": 12345,
        "lastName": "...",
        "nickName": "...",
        "phoneNumber": "...",
        "type": "external"
    }
}

@keith
Copy link
Member Author

keith commented Jan 15, 2018

It appears to only last 10 hours, so I don't think saving it is as useful as I hoped. We probably should anyways, we just need to know what happens when one expires so we can handle re-authing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant