Skip to main content
The First Step
November 29, 2019
Question

Basic authentication header is missing or malformed

Issue 1: I am trying to generate token once the user is redirected from the Login page, my platform type is Server/Web.

Here my response from the postman.


Issue 2: Also, the same thing had occurred in platform Type: Server-only (No UI)

I have a PHP SDK and using it in the Laravel application.

Here is my code:

This is what my Laravel app said when I executed the above code:

Can anyone help me out with this issue.

3 replies

The First Step
November 29, 2019

Hi,

Have you verified ring central oauth documentation. We need to use that to generate oauth token. Here you need to pass your application client id.

https://developers.ringcentral.com/api-reference/authentication

The First Step
December 3, 2019

Hi,

As you can see in my above code, I have passed the required info to generate a token.

Also any idea about Server-only (No UI), it has the same issue.

PhongVu
Community Manager
Community Manager
December 3, 2019

1. Can you first double check if you passed the client id and client secret for each app correctly. Meaning the one for Server/Web and the one for Server-only(No UI).

2. Can you also print out the full response of your issue #2 (not just the message)