Questions tagged [restful-authentication]

Inquires regarding verification methods for REST API services.

What is the proper method for transmitting a token as Bearer authentication in the header to the browser

Here is a snippet of code from my helper signin router where I am attempting to set a cookie in the browser after confirming sign in. exports.signin = (req,res) => { db.User.findOne({email:req.body.email}).then(user => { user.c ...

Protecting REST API token in a JavaScript XMLHttpRequest call

I am in the process of integrating a 3rd-party REST API with my WordPress page for a search app functionality. I want to ensure that data is fetched using AJAX without having to refresh the page. Here is how the API setup works: To obtain a bearer token, ...

Update Android: Sending data to server using PUT request

Feeling a bit frustrated here. Encountering an issue with sending all user inputs via a PUT REST request to the server. Here's how the request JSON object appears on the server: { id: "123", text: "My Name is Peter...", age": 15, name: "Pe ...

Integrate AngularJS with Laravel using API keys

I am currently developing an application that utilizes Laravel for the backend and AngularJS for the front-end. The user authentication process between the front-end and the API is quite simple, as JSON web-tokens (JWT) are used. This particular tutorial ...