Skip to content

Commit

Permalink
Update ARNs user access role (#2413)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-britton-moj authored Oct 19, 2023
1 parent 9b1dba0 commit abfbd2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJwcm9iYXRpb24taW50ZWdyYXRpb24tZGV2IiwiZ3JhbnRfdHlwZSI6ImNsaWVudF9jcmVkZW50aWFscyIsInVzZXJfbmFtZSI6InByb2JhdGlvbi1pbnRlZ3JhdGlvbi1kZXYiLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXSwiYXV0aF9zb3VyY2UiOiJub25lIiwiaXNzIjoiaHR0cHM6Ly9zaWduLWluLWRldi5obXBwcy5zZXJ2aWNlLmp1c3RpY2UuZ292LnVrL2F1dGgvaXNzdWVyIiwiZXhwIjo5OTk5OTk5OTk5LCJhdXRob3JpdGllcyI6WyJST0xFX19QUk9CQVRJT05fQVBJX19BUk5TX19VU0VSX0FDQ0VTUyJdLCJqdGkiOiIyNUR1Um4xLWh5SFpld0xjZEpKeHdWTDAzS1UiLCJjbGllbnRfaWQiOiJwcm9iYXRpb24taW50ZWdyYXRpb24tZGV2IiwiaWF0IjoxNjYzNzU3MzExfQ.sVvzi-S36P6sQNQCOxKSa_MWOkBhH89t9d3M6DVb3qAY3RumqAzokORnwtUSWhY0OtupNKPhX3g_5iSVwQoiqH3M1wo-XxOYNFL_k1erDgfG5VFzp85RdVxqvz-hw4GYGVE8oRyOWYOlavM_LYl-8E9Nxxq6SkBzhGHFuc8xvrI",
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJwcm9iYXRpb24taW50ZWdyYXRpb24tZGV2IiwiZ3JhbnRfdHlwZSI6ImNsaWVudF9jcmVkZW50aWFscyIsInVzZXJfbmFtZSI6InByb2JhdGlvbi1pbnRlZ3JhdGlvbi1kZXYiLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXSwiYXV0aF9zb3VyY2UiOiJub25lIiwiaXNzIjoiaHR0cHM6Ly9zaWduLWluLWRldi5obXBwcy5zZXJ2aWNlLmp1c3RpY2UuZ292LnVrL2F1dGgvaXNzdWVyIiwiZXhwIjo5OTk5OTk5OTk5LCJhdXRob3JpdGllcyI6WyJST0xFX1BST0JBVElPTl9BUElfX0FSTlNfX1VTRVJfQUNDRVNTIl0sImp0aSI6IjI1RHVSbjEtaHlIWmV3TGNkSkp4d1ZMMDNLVSIsImNsaWVudF9pZCI6InByb2JhdGlvbi1pbnRlZ3JhdGlvbi1kZXYiLCJpYXQiOjE2NjM3NTczMTF9.St9epANmAZp9ReDgdPQ4o9p1pulQNJLOV82YcJm8lESNX3JDfnIr1tEMMQ9srX6ghQvwCDTeq0dJjZ0MU1LO6OXz-e6P9yLsxU215YRRhAdOEiVUjshXLQRDf37qH5XdwSXzhlxs_0tArljKeJSHzilOZV2Ve0pVmfEpblSJkdk",
"token_type": "bearer",
"expires_in": 9999999999,
"scope": "read write",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import uk.gov.justice.digital.hmpps.service.UserAccessService
@RestController
@RequestMapping("users")
class UserResource(private val uas: UserAccessService) {
@PreAuthorize("hasRole('ROLE__PROBATION_API__ARNS__USER_ACCESS')")
@PreAuthorize("hasRole('PROBATION_API__ARNS__USER_ACCESS')")
@RequestMapping("access", method = [RequestMethod.GET, RequestMethod.POST])
fun userAccessCheck(
@RequestParam(required = false) username: String?,
Expand Down

0 comments on commit abfbd2b

Please sign in to comment.