Revert "feat(authz): shared authz pipeline (#4151)" (#4241)

This reverts commit cb8aa31b66.
This commit is contained in:
Chuck Driesler
2025-03-21 14:41:17 +00:00
committed by GitHub
parent 0781a4f58c
commit 66da283a79
47 changed files with 66 additions and 1370 deletions
@@ -155,23 +155,19 @@ describe('Workspace SSO', () => {
const resA = await memberApollo.execute(GetWorkspaceDocument, {
workspaceId: testWorkspaceWithSso.id
})
expect(resA).to.haveGraphQLErrors({ message: 'gql-sso-workspace' })
expect(resA).to.haveGraphQLErrors({
code: 'SSO_SESSION_MISSING_OR_EXPIRED_ERROR'
})
const resB = await memberApollo.execute(GetWorkspaceProjectsDocument, {
id: testWorkspaceWithSso.id
})
expect(resB).to.haveGraphQLErrors({ message: 'gql-sso-workspace' })
expect(resB).to.haveGraphQLErrors({
code: 'SSO_SESSION_MISSING_OR_EXPIRED_ERROR'
})
const resC = await memberApollo.execute(GetProjectDocument, {
id: testWorkspaceWithSsoProjectId
})
expect(resC).to.haveGraphQLErrors({ message: 'SSO session is invalid' })
for (const res of [resA, resB, resC]) {
expect(res).to.haveGraphQLErrors({ message: 'gql-sso-workspace' })
expect(res).to.haveGraphQLErrors({
code: 'SSO_SESSION_MISSING_OR_EXPIRED_ERROR'
})
}
})
it('should allow limited access to workspace memberships', async () => {