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

Implement token renewal #85

Open
craigpratt opened this issue Apr 14, 2022 · 0 comments
Open

Implement token renewal #85

craigpratt opened this issue Apr 14, 2022 · 0 comments
Assignees
Labels

Comments

@craigpratt
Copy link
Member

The NetReach Agent needs to renew its token according to the time provided after doing the initial login. e.g. if the login response is:

{
   "token" : "...",
   "user" : {
      "uuid" : "e6b60b64-fb8a-4e97-a013-a116c7a34fd3",
      "lastName" : "ADMIN",
      "username" : "ff4uuKKx3tkjBEDZnHPM",
      "roleList" : [
         "SUPER_ADMIN"
      ],
      "firstName" : "ADMIN",
      "email" : "[email protected]"
   },
   "token_expiration" : 1674086790,
   "refresh_token_expiration" : 1678925190,
   "refresh_token" : "..."
}

then the agent needs to re-login using the refresh token before the refresh_token_expiration.

@craigpratt craigpratt self-assigned this Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant