Skip to content

Commit 787e4bd

Browse files
committed
Fix tests.
Signed-off-by: montesm <[email protected]>
1 parent 7161527 commit 787e4bd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

UnityAuth/src/main/java/io/unityfoundation/auth/AuthController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public UserPermissionsResponse permissions(@Body UserPermissionsRequest requestD
4949

5050
User user = userRepo.findByEmail(authentication.getName()).orElse(null);
5151
if (checkUserStatus(user)) {
52-
return new UserPermissionsResponse.Failure("The users account has been disabled.");
52+
return new UserPermissionsResponse.Failure("The user's account has been disabled.");
5353
}
5454

5555
Service service = serviceRepo.findById(requestDTO.serviceId())

UnityAuth/src/main/resources/application-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
micronaut:
22
application:
33
name: unity-iam
4+
server:
5+
cors:
6+
enabled: true
7+
configurations:
8+
web:
9+
allowed-origins-regex: '^http:\/\/(.*?)localhost:3000$'
410
security:
511
authentication: bearer
612
enabled: true

0 commit comments

Comments
 (0)