GSA / ITDB-schema

IT Dashboard submissions schema, documentation and example files.
18 stars 24 forks source link

Getting 401 Unauthorized error when accessing staging endpoint /v1/services #473

Open chinhqbuiTreasury opened 2 years ago

chinhqbuiTreasury commented 2 years ago

Hello, I am, Chinh Bui, new to IT Collect API. I have already paired my PIV with login.gov test site. I am trying to access the staging endpoint - https://staging-itc-cpic.itdashboard.gov/v1/services via Postman, and I got an error "{"exception":"AuthenticationException","message":"Agency role(s) for the user do not match the OAuth Clients agency scope(s). User chinh.bui@treasury.gov role(s) is ` but the client scope(s) istreas`"}.

I have put in the following information in the Authorization info in Postman:

  1. Access Token: intentionally leave out
  2. Callback URL: intentionally leave out
  3. Auth URL: intentionally leave out
  4. Access Token URL: intentionally leave out
  5. Client ID: cadc271f-32e8-4841-9712-d79e3689846e
  6. Client Secret: intentionally leave out

Could you provide assistance?

Thank you,

Chinh

chinhqbuiTreasury commented 2 years ago

I'd like to follow up with my question. Is there any update? Thanks.

rydougherty commented 2 years ago

Hi Chinh,

Thanks for reaching out. And, welcome to the IT Collect community!

We have reset your account and manually assigned the treasury role. This should resolve the error that you are receiving. However, if you continue to experience the same error, please reach out to itdb-support@gsa.gov with your authentication details.

Thanks, Ryan

chinhqbuiTreasury commented 2 years ago

It works. Thanks Ryan.