-
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.
Merge branch 'main' into BC-5629-batch-deletion-mechanism
- Loading branch information
Showing
28 changed files
with
248 additions
and
223 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,3 +1,4 @@ | ||
export { ICurrentUser } from './interface'; | ||
export { JWT, CurrentUser, Authenticate } from './decorator'; | ||
export { AuthenticationModule } from './authentication.module'; | ||
export { AuthenticationService } from './services'; |
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,2 @@ | ||
export * from './ldap.service'; | ||
export * from './authentication.service'; |
3 changes: 1 addition & 2 deletions
3
apps/server/src/modules/authentication/strategy/oauth2.strategy.spec.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
3 changes: 1 addition & 2 deletions
3
apps/server/src/modules/authentication/strategy/oauth2.strategy.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,2 +1,3 @@ | ||
export * from './oauth.module'; | ||
export * from './interface'; | ||
export * from './service'; |
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,3 @@ | ||
export * from './hydra.service'; | ||
export * from './oauth.service'; | ||
export * from './oauth-adapter.service'; |
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
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,4 @@ | ||
export * from './provisioning.module'; | ||
export * from './dto/provisioning.dto'; | ||
export * from './dto'; | ||
export * from './service/provisioning.service'; | ||
export * from './strategy'; |
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
33 changes: 33 additions & 0 deletions
33
...src/modules/user-login-migration/loggable/user-login-migration-mandatory.loggable.spec.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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { ObjectId } from 'bson'; | ||
import { UserLoginMigrationMandatoryLoggable } from './user-login-migration-mandatory.loggable'; | ||
|
||
describe(UserLoginMigrationMandatoryLoggable.name, () => { | ||
describe('getLogMessage', () => { | ||
const setup = () => { | ||
const userId = new ObjectId().toHexString(); | ||
const userLoginMigrationId = new ObjectId().toHexString(); | ||
const exception = new UserLoginMigrationMandatoryLoggable(userId, userLoginMigrationId, true); | ||
|
||
return { | ||
exception, | ||
userId, | ||
userLoginMigrationId, | ||
}; | ||
}; | ||
|
||
it('should return the correct log message', () => { | ||
const { exception, userId, userLoginMigrationId } = setup(); | ||
|
||
const message = exception.getLogMessage(); | ||
|
||
expect(message).toEqual({ | ||
message: 'The school administrator changed the requirement status of the user login migration for his school.', | ||
data: { | ||
userId, | ||
userLoginMigrationId, | ||
mandatory: true, | ||
}, | ||
}); | ||
}); | ||
}); | ||
}); |
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
32 changes: 32 additions & 0 deletions
32
...ver/src/modules/user-login-migration/loggable/user-login-migration-start.loggable.spec.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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { ObjectId } from 'bson'; | ||
import { UserLoginMigrationStartLoggable } from './user-login-migration-start.loggable'; | ||
|
||
describe(UserLoginMigrationStartLoggable.name, () => { | ||
describe('getLogMessage', () => { | ||
const setup = () => { | ||
const userId = new ObjectId().toHexString(); | ||
const userLoginMigrationId = new ObjectId().toHexString(); | ||
const exception = new UserLoginMigrationStartLoggable(userId, userLoginMigrationId); | ||
|
||
return { | ||
exception, | ||
userId, | ||
userLoginMigrationId, | ||
}; | ||
}; | ||
|
||
it('should return the correct log message', () => { | ||
const { exception, userId, userLoginMigrationId } = setup(); | ||
|
||
const message = exception.getLogMessage(); | ||
|
||
expect(message).toEqual({ | ||
message: 'The school administrator started the migration for his school.', | ||
data: { | ||
userId, | ||
userLoginMigrationId, | ||
}, | ||
}); | ||
}); | ||
}); | ||
}); |
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
1 change: 0 additions & 1 deletion
1
apps/server/src/modules/user-login-migration/service/dto/index.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,3 +1,2 @@ | ||
export * from './migration.dto'; | ||
export * from './page-content.dto'; | ||
export * from './school-migration-flags'; |
4 changes: 0 additions & 4 deletions
4
apps/server/src/modules/user-login-migration/service/dto/school-migration-flags.ts
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.