Bryant Makes Programs
Bryant Makes Programs

Reputation: 1704

Pubsub Authorization Issue

I've generated a Google Cloud API key without restrictions. I'm passing that to the my topic:publish url as a query parameter, but I'm experiencing an authorization error.

{
    "error": {
        "code": 403,
        "message": "User not authorized to perform this action.",
        "status": "PERMISSION_DENIED"
    }
}

I'm unsure how to diagnose the permission issue, as there don't appear to be any restrictions on the key. The owner of the topic is my account, so shouldn't be an issue there.

Upvotes: 1

Views: 261

Answers (1)

John Hanley
John Hanley

Reputation: 81454

Google Pub/Sub does not support API Keys for authorization. Pub/Sub uses Access Tokens. This means using a Service Account or Google OAuth.

Upvotes: 4

Related Questions