Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
1 vote
2 answers
137 views

I'm successfully creating a token upon a user's login (using a CustomUser model that replaces the username field with email), but when using this token in subsequent requests, the response is "...
William's user avatar
  • 23
1 vote
1 answer
2k views

I'm trying to add custom attributes to my authentication token but I'm running into an issue with adding custom attribute. I've tried the methods suggested in: Issue to add custom claim "...
Enrico Arnaudo's user avatar
1 vote
0 answers
101 views

I am trying to implement token based authentication for a simple hello world program in JAX-RS with Grizzly. I have set up a server and client class and a hello resource for displaying the hello world ...
ash's user avatar
  • 41
0 votes
1 answer
921 views

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 = "...
r4ymaster's user avatar
0 votes
1 answer
549 views

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 ...
werberger's user avatar
1 vote
2 answers
480 views

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 ...
Gags's user avatar
  • 913
2 votes
2 answers
929 views

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's user avatar
  • 259
2 votes
1 answer
1k views

I am using Django-Rest-Framework with token authentication. In my Android App I want to open a webview and display some content from a view which needs authentication. Because of this I wrote a rest ...
Philipp S.'s user avatar
0 votes
1 answer
149 views

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 ...
DevJava's user avatar
0 votes
1 answer
789 views

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: ...
milkom121's user avatar
1 vote
1 answer
476 views

I am using Token Authentication in my Django Rest Framework project. I have noticed that while creating a token, if I specify the created datetime field in the create method, than the token is not ...
Marry35's user avatar
  • 415
3 votes
0 answers
498 views

I am relatively new to REST Framework for django. I was creating a simple app to login the users and I tried using Token Authentication. My concern is the tokens are created for each users and they ...
Verain_the_great's user avatar
1 vote
1 answer
2k views

How do I properly implement DRF TokenAuthentication without the request object returning an anonymous user when I try to log in? according to the docs, when authenticated, the TokenAuthentication ...
Romeo's user avatar
  • 818
1 vote
1 answer
2k views

I am trying to restrict dashboard access only, which can be viewed only when the token is passed into the header but... if request.method == "POST": user_name = request.POST['...
Atif Shafi's user avatar
  • 1,194
0 votes
1 answer
333 views

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 ...
Chamodh's user avatar
  • 61

15 30 50 per page
1
2 3 4 5
10