Skip to content

Commit

Permalink
Justere aad obo caching (#1206)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolarsen authored Oct 19, 2022
1 parent 1248a30 commit 9218b16
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ private AzureBrukerTokenKlient() {
this.azureProxy = provider.proxy();
this.clientId = provider.clientId();
this.clientSecret = provider.clientSecret();
// Initiell size. Ser ut som OBO-tokens i dev har varihet på 4100-4600 s.
this.obocache = new LRUCache<>(1500, TimeUnit.MILLISECONDS.convert(10, TimeUnit.MINUTES));
// Justert size. Ser ut som OBO-tokens i dev har varihet på 4100-4600 s.
this.obocache = new LRUCache<>(2500, TimeUnit.MILLISECONDS.convert(60, TimeUnit.MINUTES));
}

public static synchronized AzureBrukerTokenKlient instance() {
Expand Down

0 comments on commit 9218b16

Please sign in to comment.