Questions tagged [http-token-authentication]

146 questions
0
votes
0 answers

How to Invoke/Call AngularJS WebClient App from a Delphi Window Application?

A WebClient (developed using AngularJS) having single page is hosted on a IIS server . I want to know how to call that Web Client, which needs a Authentication token, from Delphi (version Berlin 10.1) Windows Application and show the UX to user?
0
votes
1 answer

Upload xlsx to confluence page as attachment via REST API and token authentication

I am writing a Powershell script which will upload an Excel document to Atlassian Confluence page via REST API, using token authentication. Write-Host "Start of script" $userToken = "TOKEN" $pageId = "PAGE-ID" $fileName =…
0
votes
1 answer

Why would Django Rest Framework token authentication work in Postman but not in browser

I have a Django REST framework API that uses TokenAuthentication. In Postman, I can authenticate with the API using a token and make requests successfully. However, when I try to use the browsable API in my web browser, I get an "Authentication…
0
votes
0 answers

Token Authentication using OpenIddict does not work with Local IIS Server but works with IIS Express in ASP.NET Core 6.0

I am using OpenIddict in .Net Core 6.0 for token-based authentication and authorization for my REST/Web API It works within Visual Studio IIS Express but not on my Local IIS server. When I call the Token API using Visual Studio's IIS Express, I get…
Gags
  • 827
  • 2
  • 13
  • 29
0
votes
1 answer

Symfony 6.2 does not reach token handler on token authentication

Symfony 6.2 does not reach custom token handler while executing a request if token_extractors equals to header in the security.yml. Here is the security.yml security: password_hashers: …
Vladimir
  • 229
  • 2
  • 16
0
votes
1 answer

Django Token authentication problem accessing another account

I have made Account model, which is now custom user model in Django my app. Also, I have Token authentication, but I do not know how to refresh Token, and how frequently I have to change Token for user.. Also I have a problem, because a user after…
DevJava
  • 5
  • 2
0
votes
1 answer

"Unable to log in with provided credential" in Django REST Framework

So, I'm learning DjangoRF through a Udemy course in which we build an API with a token authentication. All code written, I launch my server, I try to login via example client and this error occur: Status Code: 400 {'non_field_errors': ['Unable to…
0
votes
1 answer

How authorize a web API using a cookie based authentication

I had a MCV core app that uses cookie based authentication (stores user credentials in DB). Later I introduced a web api as the backend of this MVC application. Now both are hosted together as a Azure web app. For now my cookie authentication logic…
0
votes
1 answer

django Rest frame work : token authentication

I have a table ('like') to like post class Likes(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE, null=True) content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE) object_id =…
0
votes
2 answers

Token Authentication with Axios in React

I have created a login system in React with Axios, and it gives me a login token. I have saved this login token and response (LoginToken): (Login.js) export default class Login extends Component { state = { redirect: false, …
lydal
  • 802
  • 3
  • 15
  • 33
0
votes
1 answer

Token auth - django rest framework

I don't know how to return token if user is present in my database. I have User model with login and password fields and I have created some users from dajngo admin site. In Urls i have registered slug: path('api-token/', AuthToken, name =…
0
votes
0 answers

Laravel Airlock Token

Introduction/Background I'm looking to enable token authentication for multiple microservices and users. Both applications and users are $user objects. I need to be able to authenticate once (hence token) using an auth server on a subdomain. I then…
elb98rm
  • 670
  • 6
  • 21
0
votes
2 answers

django.db.utils.IntegrityError: UNIQUE constraint failed: authtoken_token.user_id

I'm new in Django rest framework and I'm trying do a unit test using Token for my API, but it kept throwing IntegrityError. I've researched many blogs to find the solution but couldn't find. Please help me solve this. Thanks in advance. Here is the…
0
votes
1 answer

Django REST framework: Token Authentication doesn't work on production

I'm creating API using Django REST framework and trying to connect my mobile app to web API. I didn't have any problems with local environment. However, after I deployed API into elastic beanstalk and tried with production url, I can never…
0
votes
2 answers

How to implement tokenauthentication before views?

I have been learning how to use djangorestframework token authentication using different blog posts and youtube videos. As for reference, I was following the blog here:…