-
Couldn't load subscription status.
- Fork 9
[#311] Make client request extend lifetime of bearer token #447
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
base: main
Are you sure you want to change the base?
Changes from all commits
6698793
c349ee7
c36fcae
4358600
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -247,8 +247,9 @@ Notice how some of the configuration values are wrapped in angle brackets (e.g. | |
|
|
||
| // Defines options for the "Basic" authentication scheme. | ||
| "basic": { | ||
| // The amount of time before a user's authentication | ||
| // token expires. | ||
| // The amount of time before a user's authentication token expires. | ||
| // The lifetime of a token will be extended by this amount on each | ||
| // use as long as the token has not expired. | ||
|
Comment on lines
+250
to
+252
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe it's just me, but this wording feels a little inaccurate. The expiration of the token is set to To me, it sounds like the expiration will be extended by (by default) an hour each time the token is used. So if I authenticate 4 times in a second, the expiration will be 4 hours away instead of 1 hour away. Maybe I'm misunderstanding all this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Your question indicates the wording isn't clear. Showing some math is likely a better fit. For example: The documentation would be updated to align with the idea too. Thoughts? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I think that's much clearer. |
||
| "timeout_in_seconds": 3600 | ||
| }, | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Use" might be a bit vague to an admin unfamiliar with how we use our tokens. "Request" might help clear up that this is used on every basic HTTP API request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider...