Do I need the client secret to get access token for backend testing

If you are trying to use any flow but Implicit AND the application is configured with a Client Secret, the answer is going to be no, you cannot get a token back without having the client secret available.

You could look to using implicit flow to get an access token, but the application will have to be configured to support this flow as well.