Questions tagged [http-token-authentication]

146 questions
0
votes
1 answer

Token Authentication not able to receive a token

I am not able to receive token form my REST API . I used Interceptors too but unable to access it. Everytime I test run the app , It just shoes me the toast message inside the onFailure() method inside the enqueue method of Retrofit Can anyone…
0
votes
1 answer

IdentityServer4 database for access token issuer

I am completely new to IdentityServer4 and I cannot figure out how does it create an access token from userid (username?) and secret (password?). Here are some sub questions which makes me confused: a) Is there a seperate database running for…
0
votes
1 answer

Token authentication with C# Web Api and axios

I am implementing a login. I can send a post request to the endpoint token in Postman but not in axios. Axios function: axios({ method: 'post', url: 'http://localhost:20449/token', headers: { 'Content-type':…
0
votes
1 answer

Opening link in new browser redirecting me to login page in Angular JS

I have AngularJS website which contains few hyperlink. Whenever I try to open the link in same tab then it is working fine but whenever I try to open the link in new tab then it is redirecting me to login page. RouteController.js var app =…
0
votes
2 answers

in django drf can a authenticated user with token access other users data?

in django drf can a authenticated user with token access other users data? I know it shouldn't but in my application its not happening. for testing I was using the token in postman but I was surprised when I see by using one users token I can access…
0
votes
1 answer

Django REST Framework: email+password token-based authentication for one to one custom user

I need help with token-based authentication for a custom user model. I have a User model that inherits from AbstractBaseUser: class User(AbstractBaseUser): email = models.EmailField(max_length=255, unique=True) name =…
0
votes
1 answer

Where to find token on token based authentication

I was trying to find the token on a login page. I've already searched on page source but it'isnt here. I'd like to know the practices for passing an access token and then the way to find it
Riccardo
  • 21
  • 1
  • 9
0
votes
2 answers

Unable to authenticate on azure data lake using java

I am trying to connect to azure data lake using java program where i can get data to/from azure data lake, but my program is unable to authenticate and terminate with Bad Request error. i have Microsoft free trail account and have done following…
0
votes
1 answer

How to get property from method attribute C#

I have an authentication attribute in C# public class JwtAuthenticationAttribute : Attribute, IAuthenticationFilter { public string Realm { get; set; } public bool AllowMultiple => false; public User User { get; set; } public async…
oware
  • 626
  • 9
  • 19
0
votes
1 answer

Retrofit authentication in the next activity

My first activity is the login activity with simplest form and hardcoded credentials for this purpose. POST request is sent to the API and the token is returned as a result. Everything works fine. Now the way I implemented it is I have an intent…
Derrick
  • 55
  • 1
  • 1
  • 8
0
votes
1 answer

Designing Token Based Authorization Server Request/Response

Identity in our services are based on a token stored in a database. This is acquired by the client by logging in with a username and password. Each time a resource is requested, we plan to validate the token and determine if the user is authorized…
0
votes
1 answer

Display view with token authentication

I'm trying to figure out how to display view with token authentication. I want to be able to make screenshot of my app without layout and with token access in http request. I don't want to login user but just access to my views. I use devise devise…
0
votes
2 answers

I can't understand the JWT Authentication well

Nowadays many developers use the JWT Authentication to authorize the api call. By the way, if a hacker can capture the api call request of the authenticated user then he can have the authenticated JWT token. Then the hacker can access this api with…
Eddy
  • 3
  • 2
0
votes
1 answer

How to set up Token Authentication properly in Rails?

I am trying to make an API for a project. I followed instructions from this video - https://www.youtube.com/watch?v=lgdUqtw4weg&t=165s Basically in the video, I make a token column for the user model. And set up the controller so I can use a post…
0
votes
1 answer

how to set up Owin Authentication in ASP.Net successfully?

For last 1 day, I am trying to set up Token Based Authentication for my api based project. Using the below link as start point. http://www.c-sharpcorner.com/UploadFile/736ca4/token-based-authentication-in-web-api-2/ But I am bit confused & getting…
Kgn-web
  • 7,047
  • 24
  • 95
  • 161