-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
546a5ed
commit 48d3dc4
Showing
35 changed files
with
511 additions
and
1,368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
export * from './brute-force.error'; | ||
export * from './ldap-connection.error'; | ||
export * from './school-in-migration.error'; | ||
export * from './unauthorized.loggable-exception'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './school-in-migration.loggable-exception'; |
15 changes: 11 additions & 4 deletions
15
...ation/errors/school-in-migration.error.ts → ...school-in-migration.loggable-exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
import { HttpStatus } from '@nestjs/common'; | ||
import { BusinessError } from '@shared/common'; | ||
import { ErrorLogMessage, Loggable } from '@src/core/logger'; | ||
|
||
export class SchoolInMigrationError extends BusinessError { | ||
constructor(details?: Record<string, unknown>) { | ||
export class SchoolInMigrationLoggableException extends BusinessError implements Loggable { | ||
constructor() { | ||
super( | ||
{ | ||
type: 'SCHOOL_IN_MIGRATION', | ||
title: 'Login failed because school is in migration', | ||
defaultMessage: 'Login failed because creation of user is not possible during migration', | ||
}, | ||
HttpStatus.UNAUTHORIZED, | ||
details | ||
HttpStatus.UNAUTHORIZED | ||
); | ||
} | ||
|
||
getLogMessage(): ErrorLogMessage { | ||
return { | ||
type: this.type, | ||
stack: this.stack, | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
253 changes: 0 additions & 253 deletions
253
apps/server/src/modules/oauth/controller/api-test/oauth-sso.api.spec.ts
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
apps/server/src/modules/oauth/controller/dto/authorization.params.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
export * from './authorization.params'; | ||
export * from './system-id.params'; | ||
export * from './sso-login.query'; | ||
export * from './user-migration.response'; |
Oops, something went wrong.