Questions tagged [auth-token]
132 questions
84
votes
5 answers
Best practices to invalidate JWT while changing passwords and logout in node.js?
I would like to know the best practices to invalidate JWT without hitting db while changing password/logout.
I have the idea below to handle above 2 cases by hitting the user database.
1.Incase of password changes, I check for password(hashed)…

Gopinath Shiva
- 3,822
- 5
- 25
- 48
70
votes
9 answers
How do you authenticate a websocket with token authentication on django channels?
We want to use django-channels for our websockets but we need to authenticate as well. We have a rest api running with django-rest-framework and there we use tokens to authenticate a user, but the same functionality does not seem to be built into…

ThaJay
- 1,758
- 1
- 19
- 30
17
votes
1 answer
How to securely keep my users signed in with refresh tokens?
From https://stackoverflow.com/a/7209263/1225328:
The idea of refresh tokens is that if an access token is compromised,
because it is short-lived, the attacker has a limited window in which
to abuse it.
I get it, but if the attacker accesses…

sp00m
- 47,968
- 31
- 142
- 252
15
votes
1 answer
How to make AccountManager (authtoken) and OpenID work together (without AppEngine)?
I am making an Android app which should be able to get data from a web service (which is not part of GAE). Users are able to log in to web service through their browser by using OpenId (only Google accounts are allowed).
AccountManager can give me…

user765667
- 159
- 1
- 3
14
votes
2 answers
How can I pass an auth token when downloading a file?
I have a web app where the Angular (7) front-end communicates with a REST API on the server, and uses OpenId Connect (OIDC) for authentication. I'm using an HttpInterceptor that adds an Authorization header to my HTTP requests to provide the auth…

Gary McGill
- 26,400
- 25
- 118
- 202
8
votes
1 answer
What authTokenType exactly mean?
I have been working on an account manager in android to maintain a separate account for my app.
I searched through many sites, but I couldn't understand the meaning of authTokenType. I want to know whether the authTokenType is generated by the…

ajantha
- 1,585
- 16
- 23
7
votes
4 answers
How to retrieve an Facebook-AuthToken from the accounts saved on Android
I'm trying to retrieve the AuthToken for Facebook (saved by Facebook for Android) by using the following piece of code.
AccountManager am = AccountManager.get(this);
Account[] accounts = am.getAccountsByType("com.facebook.auth.login");
if…

Dennis Winter
- 2,027
- 4
- 32
- 45
7
votes
2 answers
Simple Odata Client - How to add oAuth Token in each request header?
In Microsoft oData v4 proxy client, there is an option to add auth token into each request. It can be achieved by following way:
var container = new Default.Container(new Uri(http://localhost:9000/));
//Registering the handle to the BuildingRequest…

Rahul
- 2,431
- 3
- 35
- 77
7
votes
2 answers
Cannot get AuthToken for custom account from different app
I have two apps that work with a same account type. I want below page to be shown when the user opens the second app for first time and one account exists:
But nothing happens when I run this code:
final AccountManagerFuture future =…

Misagh Emamverdi
- 3,654
- 5
- 33
- 57
7
votes
1 answer
Django Rest Framework JWT
I'm using Django Rest Framework to build the API for my application and would like to implement DjangoRestFramework-JWT for token authentication. The steps seem simple enough but when I test the endpoint I get a 500 error. The terminal output is a…

ModernMarc
- 85
- 1
- 7
7
votes
3 answers
Flask login mechanisim to authenticate per token my calls
Hi I was looking at flask-login at handles the session login nicely, this work good for templating and views where I have access to the session.
Nevertheless I have been trying to know if there is a way I can send a user_token to authorized a call.…

Necronet
- 6,704
- 9
- 49
- 89
6
votes
3 answers
Android Account Manager not caching the authToken
Hi I'm having issues recovering my authToken when I call
mAccountManager.blockingGetAuthToken(Auth.getAccount(), Auth.AUTH_TOKEN_TYPE, true)
I get a null string back, which lead me to look into my AbstractAccountAuthenticator class, specifically…

AIntel
- 1,087
- 5
- 14
- 27
5
votes
1 answer
single google account authtoken for Multiple Google Data API in Android
Hello android enthusiast, i'm struggling to find solution to this problem. I'm planning to access the user's Google Calendar and Google Documents,(using google-api-java-client-v1.6.0). I can access the user's Google account through AccountManager…

Ben
- 59
- 3
5
votes
1 answer
Modify http proxy request by adding auth token returned from another request
I'm using the http-proxy-middleware (https://github.com/chimurai/http-proxy-middleware#http-proxy-events) to implement a simple proxy (call it my-proxy/) to another REST API (call it /rest-api) that requires the user to pass an auth token in the…

Will
- 2,858
- 6
- 33
- 50
5
votes
0 answers
Google Cloud Storage auth token in React Native
With Google Could Storage my core problem is AUTH_TOKEN in required Authorization header.
POST https://www.googleapis.com/upload/storage/v1/b/myBucket/o?uploadType=media&name=myObject HTTP/1.1
Content-Type: image/jpeg
Content-Length:…

Peter G.
- 7,816
- 20
- 80
- 154