Questions tagged [http-token-authentication]

146 questions
2
votes
0 answers

How do I authorize only my own mobile apps to call my rails 4 api?

I have a web app that exposes an api using devise_token_auth. I build multiple mobile apps that talk to different facets of this web app over https. They use devise_token_auth to get an access token, and then the access token is used in future…
Anand
  • 3,690
  • 4
  • 33
  • 64
2
votes
0 answers

How to use devise_token_auth access token to initiate user session with HTML?

I have a rails 4 app that uses devise and devise_token_auth gems. I want my rails app to use devise normally for html requests, and use devise_token_auth to retrieve an access token. All of the above works fine. Now, from my REST Client, I want to…
2
votes
1 answer

How to handle HTTP authentication for web app which will be accessed by other third party applications only?

I am building a rails application which has both API and UI, I have implemented HTTP token authentication (header) for API and want to continue with same for web app as well if possible. I am saving the user token in session[:token] and using…
2
votes
1 answer

Trouble importing HTTPTokenAuth from flask_httpauth

I am trying to use token authentication for a Flask project. from flask_httpauth import HTTPBasicAuth # works from flask_httpauth import HTTPTokenAuth # does not work. I get the following error ImportError: cannot import name HTTPTokenAuth I…
2
votes
0 answers

django rest framework Token authentication with expiring token

I am creating a django api system that works with django rest framework. I need an expiring token system that works on the below manner We have three user roles admin (token expire in 1 hour) supervisor (token expire in 1 hour) end user (token…
Akhil Sundar
  • 1,267
  • 5
  • 18
  • 32
2
votes
1 answer

Token based authentication with BCrypt hashpassword

I am totally new to Asp.net mvc. I am trying to implement token based authentication on my Asp.net mvc app. I have implemented it successfully according to…
Thudani Hettimulla
  • 754
  • 1
  • 12
  • 32
2
votes
2 answers

How do you use the migration framework to add Django REST Framework Authentication Tokens

I am setting up a new API using the Django REST Framework, and I need to add Auth tokens to all the existing users. The docs say to do: from django.contrib.auth.models import User from rest_framework.authtoken.models import Token for user in…
2
votes
1 answer

How much token based auth is secured for Web API

Token based auth works like this way The general concept behind a token-based authentication system is simple. Allow users to enter their username and password in order to obtain a token which allows them to fetch a specific resource - without using…
Mou
  • 15,673
  • 43
  • 156
  • 275
2
votes
2 answers

How to handle session and token based authentication simultaneously using middle ware in django?

I want to use both token and session based authentication in my application with the priority of token. I have created two portal with the same URL one is using session and other is using token. So when session is available in cookie then token…
2
votes
2 answers

Django Rest Framework Token Authentication failure results in Pop up

I am using django rest framework Token Authentication. In case if I call a url, providing a token (Token aesdghfhkjdsajgaadsa) which is invalid or already deleted, I get a pop up asking for username and password. How can I avoid that pop up? I just…
2
votes
3 answers

How to allow multiple URLs before someone signs in using token auth, Angular

I am using token auth and currently if a user is not signed in they are directed to the url path of '/login', I want to allow users to go to the path '/createUser'. The code below is what directs users to the login page if they are not logged in.…
Billy
  • 823
  • 3
  • 12
  • 28
2
votes
1 answer

Can't get Token based authentication working with NancyFX

I am trying Token based authentication with NancyFX. Token is getting generated perfectly but when I am passing header in Get Request, I can't get pass this.RequiresAuthentication() and getting unauthorized error. Here is my token format Token:{…
kunjee
  • 2,739
  • 1
  • 23
  • 38
2
votes
1 answer

Angular with .net WebAPI Token authetication - File Upload

I am trying to implement this file upload plunging into my project using Angularjs and .net web api token authorization File Upload: http://blueimp.github.io/jQuery-File-Upload/ Token authorization:…
2
votes
2 answers

Android player not working with akamai token authentication

i am developing an android application that contains a videoview that plays hls streaming from akamai CDN . the thing is the streaming url has a token authentication generated using Akamai API. the problem is that my video can't play this…
S.Najjar
  • 65
  • 1
  • 9
1
vote
0 answers

Getting exception: server returned response code 401 ; while implementing token based authentication for jax-rs with grizzly in java

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 along with a parameter that is entered through a…