Skip to content

Commit

Permalink
Add mms scope
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaagma committed Jan 6, 2025
1 parent 10ffde6 commit cefb62e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { addScopesToClient, compose } from './helpers'

export const up = compose(
addScopesToClient({
clientId: '@island.is/clients/application-system',
scopeNames: ['@mms.is/framhaldsskolaumsokn'],
}),
)
1 change: 1 addition & 0 deletions libs/auth/scopes/src/lib/mms.scope.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export enum MMSScope {
frigg = '@mms.is/frigg',
framhaldsskolaumsokn = '@mms.is/framhaldsskolaumsokn',
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig } from '@island.is/nest/config'
import { MMSScope } from '@island.is/auth/scopes'
import * as z from 'zod'

const schema = z.object({
Expand All @@ -16,7 +17,7 @@ export const SecondarySchoolClientConfig = defineConfig<z.infer<typeof schema>>(
'XROAD_SECONDARY_SCHOOL_PATH',
'IS-DEV/GOV/10066/MMS-Protected/umsoknagatt',
),
scope: [],
scope: [MMSScope.framhaldsskolaumsokn],
}
},
},
Expand Down

0 comments on commit cefb62e

Please sign in to comment.