Questions tagged [restful-authentication]

Questions about authentication for RESTful services.

Services designed using REpresentational State Transfer architecture must often authenticate clients. How best to do this can be a complex topic, as in true REST each client request to the server will contain all the information necessary to complete it (including authentication).

Resources

1447 questions
-1
votes
2 answers

How to return Array of two JSON Object in Jersey RESTFul API(JAX-RS)

I have designed login module in RESTFul API using jersey. whenever any error occurred while login it will return error code and message like, { "errorFlag": 1, "errorMessage": "Login Failed" } but whenever I get successful results it…
-1
votes
1 answer

UAA server - org.springframework.security.authentication.BadCredentialsException: Bad credentials

The client needs to get a token from UAA server, but when the request was sent, I alway got the error as…
-1
votes
1 answer

How to define API keys in restFul meteor?

I am new to rest api in meteorjs. I am trying to run the example explained in The meteor chef but getting this error: ReferenceError: APIKeys is not defined at Object.API.authentication (api/config/api.js:4:19) at Object.API.connection…
Ankush Rishi
  • 2,861
  • 8
  • 27
  • 59
-1
votes
1 answer

How to do base64 encoding for login service in angular js

Can anyone suggest a best way to do encoding for login credentials in angular js? I don't want to sent username and password directly in post request. How to handle this if we are using java restful webservice in server side to validate the…
-1
votes
1 answer

Need a rest call from java

I am making a call to an API as a client. I ma using java to do this. I just need a response for now. I will convert the output later. My code is as follows: String data = "User=admin&Password=1234&Authorization=basic&Keyword=nana"; URL url; try { …
-1
votes
3 answers

how to connect android to restful api

I'm making an app which let people login, sign in, sign up, write something and save it to database. So I decided to chose Restful Api with Slim Framework. I publish it in my host and test by extension of google chrome call Advanced Rest Client. …
kien.nt
  • 81
  • 2
  • 12
-1
votes
1 answer

RESTful - MySQL connection in Java

Guys I am trying to develop a simple authentication application in java by using RESTful and MySQL. For the Server i'm using the following code import java.sql.Connection; import java.sql.DriverManager; import javax.ws.rs.GET; import…
user3358377
  • 145
  • 3
  • 16
-1
votes
1 answer

ruby on rails: Store data for current_user on different models

I am trying to store data from the current_user in a User model with attr_accessor :offset. I would like to fetch records of a different model using the offset stored in the current_user model. When I change this offset from a different model it…
-2
votes
1 answer

In R, I need to connect to the public API -- ​http://www.omdbapi.com

I want an R code to connect with this public API -- http://www.omdbapi.com And the API key is as follows: http://www.omdbapi.com/?i=tt3896198&apikey=4de9f5a6 Request you to help me out with how to connect to the API
-2
votes
2 answers

HttpURLConnection REST API in C# conversion

I just got some Java code which i need to convert to C# and upload the file into Documentum server. I Converted into C#, need to have some queries. what is the boundary (In Java using some constant unique value) what to declare in C#,And i hope…
AdithyaM
  • 139
  • 2
  • 2
  • 16
-2
votes
1 answer

How to prevent multiple logins using the same username and password in Spring security

I have implemented spring security with a restful API using spring boot and everything work perfectly. I wan't to prevent multiple login with the same username and password from the same client. how can I do that ?
-2
votes
2 answers

Node.Js webserver won't access data from mongodb

I just went through a tutorial and made a simple restful api. Afterwards, I added an admin user to my database. When I run the server, the authentication works, but if I try to access data via the api from the browser I get the eternal "waiting for…
-2
votes
1 answer

Swift iOS app to REST PHP API - What's the best practice for authentication?

I'm in the process of building a iOS mobile application in Swift. I have a RESTFUL API written in PHP which communicates between the mobile application and a database. Everything is working perfectly. The problem I've got is, I don't know what the…
JamMan9
  • 706
  • 2
  • 9
  • 22
-2
votes
1 answer

Creating web services with scalable open source technologies

We would like to have some recommendation for creating restful web services. We went through many article and answers. Most of the answers are specific to a framework. Can someone please point us to comparison article which helps me to understand…
-2
votes
1 answer

append username and password in http request in golang

what i have tried till now is like and http request formed now is:curl -X POST http://localhost:8080/v1.0 l_httpClient_ptr := http.Client{ Timeout: timeout, } var l_resp_ptr *http.Response var l_resp_byte []byte l_resp_ptr, r_err =…
vijay
  • 303
  • 2
  • 6
  • 14
1 2 3
96
97