restful-authentication

GET request works in browser but not in POSTMAN or SOAPUI

筅森魡賤 提交于 2021-01-21 04:34:49
问题 I have the following endpoint: http://millennium.iwise.com.br:6017/api/millenium_eco/Tabelas_preco.lista If I try to open via browser, it asks me credentials and then works fine - as seen on image below. user: OData password: 0d@t@123 If I send the same GET request using POSTMAN or SOAPUI I get 401 Unauthorized. What I am missing here? Thank you in advance. UPDATE: I took the browser's header request and used the same in POSTMAN and I'm still receiving 401 Unauthorized. Is there a possibility

What is the difference between JSON Web Signature (JWS) and JSON Web Token (JWT)?

a 夏天 提交于 2020-07-04 06:32:38
问题 I've been coding a RESTful service in Java. This is what I've understood till now (correct me if i'm wrong): Token authorization is done using JSON Web Tokens (JWT) which have three parts: the header, the payload, and the secret (shared between the client and the server). I understood this concept and stumbled over JSON Web Signature (JWS) while reading about JWT. JWS also is an encoded entity similar to JWT having a header, payload, and a shared secret. Question: What is the difference

how to do a GET request using retrofit2?

老子叫甜甜 提交于 2020-02-24 14:10:10
问题 I have a restfull web service which is running on a localhost. I would like to make a retrofit2 GET request on that rest URL. MainActivity.java private void requestData() { public static final String BASE_URL = "http://192.168.0.103:8080/SpringWithHibernate/users/"; Toast.makeText(MainActivity.this, "In requestData() :: " + "ddd", Toast.LENGTH_LONG).show(); Gson gson = new GsonBuilder().create(); Retrofit retrofit = new Retrofit.Builder() .baseUrl(BASE_URL) .addConverterFactory

how to do a GET request using retrofit2?

帅比萌擦擦* 提交于 2020-02-24 14:09:32
问题 I have a restfull web service which is running on a localhost. I would like to make a retrofit2 GET request on that rest URL. MainActivity.java private void requestData() { public static final String BASE_URL = "http://192.168.0.103:8080/SpringWithHibernate/users/"; Toast.makeText(MainActivity.this, "In requestData() :: " + "ddd", Toast.LENGTH_LONG).show(); Gson gson = new GsonBuilder().create(); Retrofit retrofit = new Retrofit.Builder() .baseUrl(BASE_URL) .addConverterFactory

How to implement two level authentication in a RESTful API?

£可爱£侵袭症+ 提交于 2020-02-16 05:48:26
问题 I am writing a RESTful API for a fairly complex web application (further referred as api.mywebapp.com) The requirements include that api.mywebapp.com should handle: API level authentication (authorizing client application eg.: mobile app) User level authentication (authorizing www.mywebapp.com registered users so they can access their protected resources) Usage example: Mobile application connects to the https://api.mywebapp.com with a valid basic HTTP authorization header (Authorization:

How to implement two level authentication in a RESTful API?

﹥>﹥吖頭↗ 提交于 2020-02-16 05:47:28
问题 I am writing a RESTful API for a fairly complex web application (further referred as api.mywebapp.com) The requirements include that api.mywebapp.com should handle: API level authentication (authorizing client application eg.: mobile app) User level authentication (authorizing www.mywebapp.com registered users so they can access their protected resources) Usage example: Mobile application connects to the https://api.mywebapp.com with a valid basic HTTP authorization header (Authorization:

How to prevent Rest web-service Authentication with stolen Token

只愿长相守 提交于 2020-02-12 05:30:06
问题 The bounty expires in 5 days . Answers to this question are eligible for a +50 reputation bounty. Hemant Metalia wants to draw more attention to this question: “Expecting some sort of solution which can be implemented to prevent such hacks.” As we know Rest services are stateless, General strategies to authenticate is using a token based authentication. In login service it takes credentials which returns a token. This token might be set in client cookies, and all subsequent requests uses this

Login using Outlook showing cookie overflow error

巧了我就是萌 提交于 2020-02-06 19:00:33
问题 I am implementing outlook signup/signin in my Rails app for authentication from scratch without using Devise or another library or gem. I have followed the official microsoft blog For integrating outlook signin in Rails app But I am failing to implement the final step and it shows-> I have understood the problem , that the storing size of token exceeds the available cookie size I have successfully done all of the steps just When I try to store the token, it gives error class AuthController <

Login using Outlook showing cookie overflow error

元气小坏坏 提交于 2020-02-06 19:00:11
问题 I am implementing outlook signup/signin in my Rails app for authentication from scratch without using Devise or another library or gem. I have followed the official microsoft blog For integrating outlook signin in Rails app But I am failing to implement the final step and it shows-> I have understood the problem , that the storing size of token exceeds the available cookie size I have successfully done all of the steps just When I try to store the token, it gives error class AuthController <

Developing Azure functions locally

≯℡__Kan透↙ 提交于 2020-01-24 12:28:26
问题 I am leading a large team of azure functions developers. So, most of the examples quoted by Microsoft using the azure web interface don't work for me. I am developing Azure functions locally using emulators to save some costs. I publish all my functions through visual studio into my integration environment. I am developing a bunch of azure functions that need the api gateway to handle the authentication workflows using Azure AD B2C. Now, there's no api gateway emulator or an Azure AD B2C