- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
{ "message": "Not Authorized", "type": "service.not_authorized" } error recieved while oauth
{
"message": "Not Authorized",
"type": "service.not_authorized"
}
I am receiving this error constantly while processing OAuth, it was working a day before but don't know why suddenly it's not working .
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Hey! Thanks for reaching out! “Not Authorized” when using OAuth typically means the OAuth secret or the application id (client id) is incorrect. Please ensure that the secret and client id are correct for whatever environment you're using (production or sandbox). Also be sure that if you're using sandbox, the URL domain is …squareupsandbox… and not …squareup….
Let me know if you have any other questions. 🙂
Community Moderator, Square
Sign in and click Mark as Best Answer if my reply answers your question.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
I am using the application id for OAuth (authorizing application), have taken the app id correctly every time. But I get the same error every time. For OAuth, i am only using app id not app secret. Can you please suggest further? I am using sandbox also sandbox URL
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
If you're using ObtainToken endpoint, one of the requirements is client_secret (which is also the application secret). When exactly are you seeing this error just in case I am misunderstanding? Also, the doc for ObtainToken is here.
Community Moderator, Square
Sign in and click Mark as Best Answer if my reply answers your question.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report