-
Notifications
You must be signed in to change notification settings - Fork 61
CamundaCloudTokenProvider - Allow disabling of file system credentials cache persistence and add tolerance for token expiration #828
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
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 | ||||
|---|---|---|---|---|---|---|
| @@ -1,4 +1,5 @@ | ||||||
| using Microsoft.Extensions.Logging; | ||||||
| using System; | ||||||
| using Zeebe.Client.Impl.Builder; | ||||||
|
|
||||||
| namespace Zeebe.Client.Api.Builder; | ||||||
|
|
@@ -66,6 +67,23 @@ public interface ICamundaCloudTokenProviderBuilderFinalStep | |||||
| /// <returns>The final step in building a CamundaCloudTokenProvider.</returns> | ||||||
| ICamundaCloudTokenProviderBuilderFinalStep UsePath(string path); | ||||||
|
|
||||||
| /// <summary> | ||||||
| /// Disables credentials cache persitence to file system. | ||||||
|
||||||
| /// Disables credentials cache persitence to file system. | |
| /// Disables credentials cache persistence to file system. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,6 +67,18 @@ public ICamundaCloudClientBuilderFinalStep UsePersistedStoragePath(string path) | |
| return this; | ||
| } | ||
|
|
||
| public ICamundaCloudClientBuilderFinalStep DisableCredentialsCachePersistence() | ||
| { | ||
| _ = camundaCloudTokenProviderBuilder.DisableCredentialsCachePersistence(); | ||
| return this; | ||
| } | ||
|
|
||
| public ICamundaCloudClientBuilderFinalStep UseAccessTokenDueDateTolerance(TimeSpan tolerance) | ||
| { | ||
| _ = camundaCloudTokenProviderBuilder.UseAccessTokenDueDateTolerance(tolerance); | ||
| return this; | ||
| } | ||
|
Comment on lines
+70
to
+80
|
||
|
|
||
| public IZeebeClient Build() | ||
| { | ||
| return ZeebeClient.Builder() | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -2,6 +2,7 @@ | |||
| using System.Collections.Generic; | ||||
| using System.IO; | ||||
| using System.Net.Http; | ||||
| using System.Security.Cryptography; | ||||
|
||||
| using System.Security.Cryptography; |
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.
Spelling error: "persitence" should be "persistence"