Skip to content

Commit

Permalink
Fjernet referanse til name i innlogget boundry for innlogget bruker. …
Browse files Browse the repository at this point in the history
…Det er ikke tatt i bruk i backend.
  • Loading branch information
d142796 committed Mar 18, 2024
1 parent 488d94a commit 6e80e38
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/InnloggingBoundary/InnloggingBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const InternflateDecorator = NAVSPA.importer<DecoratorProps>('internarbeidsflate
export const InnloggetBrukerContext = React.createContext<InnloggetBruker>({
identifikator: '',
erNavAnsatt: false,
navn: '',
altinnOrganisasjoner: [],
rolle: 'INGEN_ROLLE',
tilganger: {},
Expand Down
1 change: 0 additions & 1 deletion src/types/innlogget-bruker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export type Rolle = 'DELTAKER' | 'ARBEIDSGIVER' | 'VEILEDER' | 'MENTOR' | 'BESLU
export interface InnloggetBruker {
identifikator: string;
erNavAnsatt: boolean;
navn?: string; // veileder navn
altinnOrganisasjoner: AltinnOrganisasjon[];
rolle: Rolle;
tilganger: Tilganger;
Expand Down
3 changes: 1 addition & 2 deletions vite.middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ export default () => ({

middlewares.use('/tiltaksgjennomforing/fakelogin/aad', async (req, res) => {
const navIdent = req.headers['navident'] || 'Z123456';
const name: string = 'Simonsen,Simon';
const url = `https://tiltak-fakelogin.ekstern.dev.nav.no/token?iss=aad&aud=fake-aad&NAVident=${navIdent}&name=${name}`;
const url = `https://tiltak-fakelogin.ekstern.dev.nav.no/token?iss=aad&aud=fake-aad&NAVident=${navIdent}`;
const response = await axios.get(url);

res.setHeader('set-cookie', `fake-aad-idtoken=${response.data};path=/`);
Expand Down

0 comments on commit 6e80e38

Please sign in to comment.