Questions tagged [http-token-authentication]

146 questions
3
votes
2 answers

Strong parameter override for DeviseTokenAuth controller

I am using devise-token-auth gem on Rails 4.2, and I've added a field nickname to the User model. I am trying to implement this via an override of the gem controller class Users::RegistrationsController < DeviseTokenAuth::RegistrationsController …
3
votes
0 answers

Build and use Cookie for token based authentication to gain access to api through openAM

Please excuse me if any of this sounds very stupid or inexperienced, however I have looked everywhere else and haven't been able to find a simple explanation as to how to properly implement this. So far I have made a restful call to a server running…
3
votes
1 answer

Owin hosted web app using Token authentication

I am trying to create an owin web app using token authentication, my startup does not have any special setup like the example in https://github.com/NancyFx/Nancy/wiki/Token-Authentication public class Bootstrapper : DefaultNancyBootstrapper { …
rosco
  • 87
  • 4
3
votes
1 answer

token authentication on Django REST framework + Angular project

I'm using DRF and Angular, which client environment is a mobile devices. I've found out a django-rest-auth package. I haven't hesitate to choice for that, because that provides a TokenAuthentication feature, which is suitable with a mobile…
3
votes
2 answers

Simple Token Authentication Signout for Rails JSON API

I have a Rails App (that is mainly a JSON API) I'm Using Devise for authentication using JSON request from whatever source (web , mobile) and I'm using Simple Token Authentication to authenticate users using HTTP headers. I'm not sure how the…
a14m
  • 7,808
  • 8
  • 50
  • 67
3
votes
1 answer

authenticate_with_http_token evaluates to nil

I'm trying to create a very basic authenticator but unfortunately I'm getting nil in return causing my route to 401 since its unauthorized. [20] pry(#)>…
alvincrespo
  • 9,224
  • 13
  • 46
  • 60
3
votes
1 answer

PHP : Understand and implement a token-based authentication system

I have read a lot about it but i still don't completely get it. I may use a library of an existing solution in the future but i want to understand and implement my own system right now. In order to be stateless and scalable I think i mustn't store…
Exayy
  • 558
  • 4
  • 10
3
votes
3 answers

WCF error: Cannot find a token authenticator

i need to consume WCF service over SSL while the request needs to be sign with one certificate and the response needs to be validated with another certificate. i get this error while executing the code: Cannot find a token authenticator for the…
Guy Bertental
  • 584
  • 2
  • 10
  • 24
2
votes
1 answer

Django: Create manualy session cookie and authenticate later with it

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 call to fetch a session id. /rest/getsessionid/ =>…
2
votes
0 answers

Server-Side Session with Django REST Framework and Token Authentication

I am using token-based authentication (via dj-rest-auth 1.1.2) on my Django REST-Framework (DRF v. 3.12.1) project. After an initial view-base login, the server issues a token that the client has to include in the HTTP Authentication header with…
2
votes
1 answer

JwtSecurityTokenHandler returns lower case claim type

I am implementing authentication to my application using Auth0 and JWT. My all claim names are in Upper case format, but once the JwtSecurityTokenHandler convert my token to JwtSecurityToken, all are the Claim types of JwtSecurityToken giving lower…
sebu
  • 2,824
  • 1
  • 30
  • 45
2
votes
0 answers

Error: AccessPolicy does not allow token issuance in Windows Azure function app

I am new to Azure Function apps. Just to brief my requirement and the issue that I am facing. I want to communicate to the Microsoft.IdentityModel.Clients.ActiveDirectory through my user credentials(azure account) and generate a token through which…
2
votes
1 answer

TokenEndPoint not found while authenticating user from SPA to Web API using OWIN

I am facing difficulty while authenticating users using token mechanism from Angular JS SPA Page to WEB API. I do not want to use ASP.NET Identity default tables to add or authenticate user. I have my own database and a table called "EmployeeAccess"…
2
votes
2 answers

Token based authentication for both Web App and Web API using Azure AD B2C

Scenario: Both Web application and Web API need to be authenticated and protected from the server side. Requirement: Web application is serving the contents for the browser and browser should be calling Web API directly (i.e. Browser to API).…
2
votes
1 answer

Sending json response using Authentication filter in Web api controller?

I have an authentication filter in my controller [ArcGISAuthentication] I have defined the filter like below public class ArcGISAuthenticationAttribute : Attribute, IAuthenticationFilter { public Task…
sachin
  • 606
  • 1
  • 6
  • 17
1 2
3
9 10