Files
speckle-server/packages/server/modules/workspacesCore/authz.ts
T
Chuck Driesler cb8aa31b66 feat(authz): shared authz pipeline (#4151)
* wip

* wip

* feat(authz): wip policy shape

* wip

* fix(authz): canReadProject with latest pattern

* wip

* feat(shared): simplify authz checks and policies

* feat(shared): port role weights into shared

* test(shared): some more tests for authz

* test(shared): more query project tests

* typo!

* feat(shared): ff loading refinements

* feat(shared): example authorization policy integration

* authz loaders init

* chore(authz): naming etc

* wip

* fix(authz): authz error objects

Co-authored-by: Kristaps Fabians Geikins <fabis94@users.noreply.github.com>
Co-authored-by: Gergő Jedlicska <gjedlicska@users.noreply.github.com>

* fix(authz): use correct role weights

* chore(authz): use codes from errors in tests

* chore(authz): wow

* chore(authz): fix more tests, add more tests

* chore(authz): fix some tests, add some tests (again)

* fix(authz): fix tests again

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
Co-authored-by: Kristaps Fabians Geikins <fabis94@users.noreply.github.com>
Co-authored-by: Gergő Jedlicska <gjedlicska@users.noreply.github.com>
2025-03-21 14:45:36 +01:00

20 lines
528 B
TypeScript

import { defineLoaders } from '@/modules/loaders'
import { LoaderUnsupportedError } from '@/modules/shared/errors'
export const defineModuleLoaders = () => {
defineLoaders({
getWorkspace: async () => {
throw new LoaderUnsupportedError()
},
getWorkspaceRole: async () => {
throw new LoaderUnsupportedError()
},
getWorkspaceSsoSession: async () => {
throw new LoaderUnsupportedError()
},
getWorkspaceSsoProvider: async () => {
throw new LoaderUnsupportedError()
}
})
}