agreeable-microphone-83376
11/11/2023, 12:12 PM<https://www.ory.sh/docs/keto/sdk/go>
, I am consistently getting Error: 401 Unauthorized
I am using Golang and working with REST API Example to Create and Check permissions.
&{401 Unauthorized 401 HTTP/2.0 2 0 map[Alt-Svc:[h3=":443"; ma=86400]
Cf-Cache-Status:[DYNAMIC] Cf-Ray:[82460dd218551b6e-DEL]
Content-Length:[139] Content-Type:[application/json]
Date:[Sat, 11 Nov 2023 11:04:22 GMT] Ory-Network-Region:[euw]
Ory-Network-Request-Id:[5a218a34-0317-990e-b60e-03f5225dd719]
Server:[cloudflare]
Set-Cookie:[__cf_bm=N4PM96TOQRH5bdI6xqo8vp5bG0QqBe3g7HYJCgRW0Is-1699700662-0-AQ+pWmjEefha+2/2GimlqSg3KhjnGrE+voXEThgzYWl01Psh5SF7gZxEkMwlokGD0FwI9Vi2WMFtrTOzIfGi7qY=; path=/; expires=Sat, 11-Nov-23 11:34:22 GMT; domain=.oryapis.com; HttpOnly; Secure; SameSite=None __cflb=04dTodacKU6FNH24G2A1nz3iW5zeyxbzSERGKG592s; SameSite=None; Secure; path=/; expires=Sat, 11-Nov-23 12:04:22 GMT; HttpOnly _cfuvid=m6wSp3_Gx3Si.q3RPiO0s4xNwYAejkVf004NPYw9H.4-1699700662277-0-604800000; path=/; domain=.oryapis.com; HttpOnly; Secure; SameSite=None] Vary:[Origin]] {{"error":{"code":401,"status":"Unauthorized","request":"5a218a34-0317-990e-b60e-03f5225dd719","message":"Access credentials are invalid"}}
1. URL I use is: https://{My-Ory-Network-Project-Slug}.<http://projects.oryapis.com|projects.oryapis.com>
2. API Key: I generated from the Ory Console looks like: "ory_pat_***"
These above URL and API Key work completely fine in POSTMAN using REST API but shows 401 while using client-go
Unable to find understand what am I missing. Any suggestion will be helpful 🙂agreeable-microphone-83376
11/14/2023, 11:42 AMproud-plumber-24205
11/14/2023, 12:21 PM