Skip to content

Authentication Error in Production Environment Setup #677

@ad201125

Description

@ad201125

Hi @anubhavmishra , I encountered an issue while setting up the production environment as per the instructions in the README. I have added all the required auth scopes and enabled domain-wide delegation for my Google Workspace. but when I am enabling the auth block I am unable to login to the UI.
When I am using ({hermes-service-user-name}@yourdomain.com) as subject and client email= {hermes-demo}@{project-id}.iam.gserviceaccount.com, then I am getting the following error:
2024-07-23T12:50:57.531+0530 [INFO] hermes: listening on 127.0.0.1:8000...
2024-07-23T12:51:52.557+0530 [ERROR] hermes: error validating Google access token:
error=
| Post "https://www.googleapis.com/oauth2/v2/tokeninfo?access_token=ya29.a0AXooCgsuLfZQQaS-Y5z099O2Sza8cM2jKLDxUPRH-vwj2P455cES8RvGDk5eaP-G0phDBAUYfuW-N2AEQJ0g-xY0iibu7_7kGxCWco9u3rg_IVC7IRPSlBjDyoAhLBDy75Wok4mXdc2d0o6wkRD7bke8CFxyiOUdZwaCgYKAfUSARMSFQHGX2MiwdggWoUpcSE6mHpq5-Mwhw0169&alt=json&fields=%2A&prettyPrint=false": oauth2: cannot fetch token: 401 Unauthorized
| Response: {
| "error": "unauthorized_client",
| "error_description": "Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested."
| }
method=GET path=/api/v2/products

Could you provide any potential solutions to resolve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions