Questions tagged [auth-token]

132 questions
2
votes
2 answers

AccountManager blockingGetAuthToken gets stuck

I've been using the SampleSyncAdapter as a base to create my own SyncAdapter. It seems to work well to add a new account, but once I want to get the authtoken with AccountManager.blockingGetAuthToken(... it gets stuck and then throws an…
likebobby
  • 1,379
  • 2
  • 14
  • 21
2
votes
0 answers

Request jenkins rest api using the authtoken got from by organization's SSO

I have a webportal where user login using our organization's SSO, After logging in i get the authtoken for the logged in session. And currently i have the Jenkins authentication setup using organization LDAP. From our webportal we will be issuing…
noorul
  • 85
  • 1
  • 9
2
votes
1 answer

Authtoken migration not working despite unit test functioning

I'm adding TokenAuthentication to our django project. All was going well, and I've added a migration and unit test for the token auth: # Migration from django.db import migrations def create_missing_tokens(apps, schema_editor): """ Tokens…
Preston
  • 7,399
  • 8
  • 54
  • 84
2
votes
2 answers

Upgrading from asp net mvc to asp core + angular

I'm upgrading an old application in asp net mvc to a new version with asp core + angular 7. In the old app, we had an external service calling our api, and sending the auth token in the URL because it couldn't do otherwise. I intercept it to inject…
Razgort
  • 428
  • 1
  • 7
  • 18
2
votes
2 answers

Add auth token in request header in ember-file-upload

I am using ember vesrion 2.15.1 for my application. I am using ember-file-upload node module to support file upload and that is successful. Challenge is I am not able to add auth token to the request header. My request header looks like this: I am…
Anand Gupta
  • 5,640
  • 3
  • 27
  • 37
2
votes
2 answers

AuthToken in Django Rest FrameWork: non_field_errors

I m trying to integrate token based authentication in DRF(Django version 1.10) but when I hit api-token-auth/ using {"username":"test","password":"123456789"} as mentioned in the doc it is required to return me the Token but I m getting { …
Dheeraj
  • 59
  • 1
  • 10
2
votes
2 answers

Invalidating JWTs on Permissions

Do people typically store permissions in a JWT? I've seen example that might have admin: true or scopes: ['add_foo', 'delete_foo', 'read_foo']. And this seems fine, other that the potentially large size that the JWT could become if there are a lot…
mleonard87
  • 324
  • 1
  • 11
2
votes
1 answer

Rails Couldn't find user with auth_token

I have just started to get a rather strange issue with my rails 3.2.18 app I am using authentication with cookies as described on Railscasts. For the past year (until I upgraded to 3.2.18) all has been well. However I now have the following issue. I…
2
votes
1 answer

Android: How to implement an account login system?

So far i followed this tutorial: http://udinic.wordpress.com/2013/04/24/write-your-own-android-authenticator/ It's working perfect. But now I want to force my users to login into my app. Just a few issues I have and not have found a solution to,…
Tim Joseph
  • 847
  • 2
  • 14
  • 28
2
votes
1 answer

custom getAuthToken not called when cached authtoken valid but goes straight to callback

I have extended AbstractAccountAuthenticator and overridden getAuthToken. Everything works well with my getAuthToken except when the cached authtoken is valid, in which case the AccountManagerCallback (signinCallback) is called without my…
Alex
  • 57
  • 5
2
votes
1 answer

Getting invalid Authtoken for gmail login?

In my android application I have created a gmail login.The user can login with the gmail credentials already in the phone.The problem is that I am not getting a valid token in android Gingerbread os.But in the case of ICS and Jelly Bean, I am…
SREEJITH
  • 816
  • 1
  • 8
  • 19
2
votes
0 answers

How to create own authTokenType in Android?

I want to create an authentication token to my account. I create own account type, and add my account to the device I create an app, that make accounts whit my account type. I create another app, that create authentication token to the devices…
KhalDrogo
  • 315
  • 1
  • 4
  • 8
2
votes
1 answer

How to generate correct auth tokens

I am trying to use the Android account manager for creating my app's own account, so I have studied the example provided in the SDK. However, I have a little problem understanding how I have to manage the authentication token on the server. From…
Romain Guidoux
  • 2,943
  • 4
  • 28
  • 48
2
votes
2 answers

How to get Windows SYSTEM user token

Operating system is Windows 7 or higher with UAC enabled. Calling process has admin rights, already confirmed by the UAC box. I want to spawn a new Console window (cmd.exe) under user SYSTEM (don't ask why). I can do this interactively by using…
e4ch
  • 31
  • 1
  • 5
2
votes
0 answers

Android: Authorizing myself to 3rd party web-site

I am developing a client-server app, which needs to access some database on the server (say, something like http://www.someserver.com/). How can I authorize user on the server from Android phone using existing Google account on the phone? I was…
Prizoff
  • 4,486
  • 4
  • 41
  • 69
1 2
3
8 9