Questions tagged [http-token-authentication]
146 questions
1
vote
4 answers
send header value using HttpUrlConnection
I have trying to send response to server using authentication value which, it provides me at login time. The server only accepts requests when that value is sent. However it works well with postman (see snapshot) but not with my code.
code
URL url…
user6587943
1
vote
1 answer
How to pass authorization token to GET method to access authorized resource?
I am new to Token Based authentication. With reference to below links, I am trying to understand Token Based authentication.
http://bitoftech.net/2014/06/01/token-based-authentication-asp-net-web-api-2-owin-asp-net-identity/
If the user…

Kgn-web
- 7,047
- 24
- 95
- 161
1
vote
0 answers
How to extend web api token expiration time or any solution to prevent expiration while user requesting web api
Currently, web api configured for token authentication with 30 min timeout as below:
public void ConfigureOAuth(IAppBuilder app)
{
OAuthAuthorizationServerOptions OAuthServerOptions = new OAuthAuthorizationServerOptions()
{
…

dsi
- 3,199
- 12
- 59
- 102
1
vote
0 answers
Context.User.Identity.GetUserId() and Context.User.Identity.Name are returning null in Hub in signalR
Context.User.Identity.GetUserId() and Context.User.Identity.Name are returning null in AppHub.cs (Hub) in signalR. In this I am using Token based authentication in Identity Framework.

RohitV
- 65
- 1
- 7
1
vote
0 answers
Ionic Token authentication php Server - Security questions
I'am pretty new at this topic and want to realize a token based user authentifications and wonder if that are the right steps to do this in a "pretty" secure way.
First on the Ionic App:
-> send the login data in plain text to the https server, via…

miholzi
- 922
- 1
- 14
- 36
1
vote
1 answer
Issue a refresh token in aspnet5 rc1 Web API2 identity 3 using JwtBearerAuthentication
I'm currently stuck on the mechanics of how to implement a refresh token flow in aspnet5.
Goal: I want to intercept every transaction to check if the token is expired or about to expire and if so, renew it. (I'm already validating the signature of…

proggrock
- 3,239
- 6
- 36
- 51
1
vote
2 answers
How token based authentication helps in cors, cdn, CSRF , mobile ready?
I was reading articles about token based authentication.
And when I was going through this article "Cookies Vs Tokens", I did not understand the following four points (I have asked my doubts below each of the quoted points)
Cross-domain / CORS:…

Harish Kayarohanam
- 3,886
- 4
- 31
- 55
1
vote
1 answer
Django, DRF Token authentication doesn't work, get Anonymous User
I'm quite new to Django. I want to make some authorization for mobile. I've read docs below:
http://www.django-rest-framework.org/api-guide/authentication/#setting-the-authentication-scheme
Although I've read and done as it is written thoroughly it…

adamura88
- 513
- 1
- 4
- 13
1
vote
0 answers
Cross-domain authentication based on token
There are two servers:
one on domain A
another on different domain B.
Let's call them A-server and B-server respectively.
A-server is a main server with its own authentication and also frontend part.
B-server is a service with its own…

gaussblurinc
- 3,642
- 9
- 35
- 64
1
vote
1 answer
How to check token based authentication for GET and Post Methods in asp.net
How to use token based authentication for GET and Post Methods and also subsequent methods in asp.net

Muthu
- 165
- 4
- 18
1
vote
2 answers
Magento Implementing token based authentication
I saw some documentation here to create token based authentication.
http://devdocs.magento.com/guides/v1.0/get-started/authentication/gs-authentication-token.html
But i cant make it work. The urls in this example are not working.
I am new to…

Paulson Peter
- 574
- 4
- 12
1
vote
3 answers
Token based authorization in nodejs/ExpressJs and Angular(Single Page Application)
In my application,while registering the users i am saving username,password and jwt generated token with these fields in MONGO DB.When user tries to login with correct credentials then i will send the response with stored token.Then at client…

HARSHA LANKA
- 135
- 1
- 2
- 13
1
vote
2 answers
Authentication session techniques for server rendered React js code?
I am writing a React.js non-single page application. I've been using auth tokens to store my authentication sessions which normally works fine with single page applications. But in my case, whenever the client makes a request directly from the…

Derek
- 11,980
- 26
- 103
- 162
1
vote
1 answer
Login with token-based API?
I'm building a Django web app with an api that uses token-based authentication, rather than session-based. The api is consumed both by the frontend of the web app and by a separate mobile app. I'm having a tough time figuring out how to do login. My…

eyuelt
- 1,386
- 1
- 15
- 22
1
vote
0 answers
Sessions or HTTP token authentication in rails-api apps?
I'm trying to figure out the best way to do authentication for a rails-api app, although I'm seeing that sessions might just be a nicer and more supported approach.
Is there any conventional wisdom on this matter? Is there an advantage to HTTP…

Alexander Trauzzi
- 7,277
- 13
- 68
- 112