Skip to content

Commit

Permalink
Merge pull request #26 from TAMULib/service_handle_null_credentials
Browse files Browse the repository at this point in the history
UserController should check that passed credentials is not NULL
  • Loading branch information
wwelling committed Jul 2, 2018
2 parents 4a52a55 + fd3762c commit b3d4baa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>edu.tamu.weaver</groupId>
<artifactId>webservice-parent</artifactId>
<version>2.0.0-RC4-SNAPSHOT</version>
<version>2.0.0-RC5-SNAPSHOT</version>
</parent>

<properties>
Expand All @@ -37,31 +37,31 @@
<dependency>
<groupId>edu.tamu.weaver</groupId>
<artifactId>auth</artifactId>
<version>2.0.0-RC4-SNAPSHOT</version>
<version>2.0.0-RC5-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>edu.tamu.weaver</groupId>
<artifactId>token-provider</artifactId>
<version>2.0.0-RC4-SNAPSHOT</version>
<version>2.0.0-RC5-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>edu.tamu.weaver</groupId>
<artifactId>validation</artifactId>
<version>2.0.0-RC4-SNAPSHOT</version>
<version>2.0.0-RC5-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>edu.tamu.weaver</groupId>
<artifactId>email</artifactId>
<version>2.0.0-RC4-SNAPSHOT</version>
<version>2.0.0-RC5-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>edu.tamu.weaver</groupId>
<artifactId>reporting</artifactId>
<version>2.0.0-RC4-SNAPSHOT</version>
<version>2.0.0-RC5-SNAPSHOT</version>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/edu/tamu/app/controller/UserController.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class UserController {
*
*/
@RequestMapping("/credentials")
@PreAuthorize("hasRole('ANONYMOUS')")
@PreAuthorize("hasRole('USER')")
public ApiResponse credentials(@WeaverCredentials Credentials credentials) {
return new ApiResponse(SUCCESS, credentials);
}
Expand Down

0 comments on commit b3d4baa

Please sign in to comment.