USACE / cwms-data-api

Corps Water Management System RESTful Data Service
MIT License
14 stars 14 forks source link

403 - Failed to authenticate on RC14 - cac_user vs cac_auth #928

Closed krowvin closed 4 weeks ago

krowvin commented 1 month ago

When trying to login on the T7 and create or view api keys I got the following error response

{
  "message": "Missing roles {Role{name='cac_user'}}",
  "incidentIdentifier": "user input error",
  "details": {}
}

Looking at my roles I see:

"roles": [
"CWMS DBA Users","RDL Reviewer","Viewer Users","CCP Mgr","VT Mgr","CWMS User Admins","TS ID Creator","Data Exchange Mgr","Data Acquisition Mgr","RDL Mgr","CCP Reviewer","CWMS PD Users","All Users","CWMS Users","CCP Proc","cac_auth"]

This is on v3.1.5RC14

CURL

curl -X 'GET' \
  'https://<T7port>:<TCPort>/swt-data/auth/keys' \
  -H 'accept: application/json'

On the SWT T7

krowvin commented 1 month ago

Solved with