Skip to content

Commit

Permalink
lagt på metrikker på tokenveksling
Browse files Browse the repository at this point in the history
  • Loading branch information
kmriise committed Oct 24, 2023
1 parent 045bf92 commit 09b82cc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib/Utils/auth.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { makeSession } from "@navikt/dp-auth";
import { azure } from "@navikt/dp-auth/identity-providers";
import { azure as azureOBO } from "@navikt/dp-auth/obo-providers";
import {
azure as azureOBO,
withInMemoryCache,
} from "@navikt/dp-auth/obo-providers";
import { withPrometheus } from "@navikt/dp-auth/obo-providers/withPrometheus";

export let getAzureSession;
getAzureSession = makeSession({
identityProvider: azure,
oboProvider: azureOBO,
oboProvider: withInMemoryCache(withPrometheus(azureOBO)),
});

export async function getInntektOboToken(session) {
Expand Down

0 comments on commit 09b82cc

Please sign in to comment.