Questions tagged as 'tokens'

1
answer

How to use a permanent token with Http POST in REST services

Good morning, I'm trying to do a POST of a Json with a permanent token, but it always gives me error 401 unauthorized , code: public static async Task<Uri> CrearitemAsync(Item item) { using (var client = new HttpClie...
asked by 26.09.2017 / 16:30
1
answer

How to change the name of the cookie that the token creates in the forms?

I have a form where I occupy @Html.AntiForgeryToken() which creates a cookie of name __RequestVerificationToken which I want to hide. For this I thought about changing the name of that cookie to another one so as not...
asked by 13.06.2018 / 23:52
1
answer

Implement token's in web services with php and json

I have created several web services to consult data from my database from an android application, the web services are already working, they return the information to me and it is already shown in the application, but I want to implement token's...
asked by 29.12.2018 / 17:12
1
answer

ERR_HTTP_HEADERS_SENT - Json Web Tokens in Node.js

I'm trying to implement the JSON TOKEN in node.js but I have this error:    [ERR_HTTP_HEADERS_SENT]: Can not set headers after they are sent to the client at ServerResponse.setHeader (_http_outgoing.js: 469: 11) This is the code I have:...
asked by 18.09.2018 / 00:25
1
answer

Problem with authenticate (username = username, password = password) in django

I am trying to make a login for an api with django rest framework, I am guiding myself with this video: link Here is just the code I use in the login view: orders / urls: from django.urls import path, include from . import views from r...
asked by 21.06.2018 / 08:02
2
answers

Token CSRF Symfony

I am sending a request by ajax to a controller and this error is generated    ERROR: The CSRF token is not valid. Please try to send the form again. Form {{ form_start(form, {'action': path_with_locale('general_alerts'), 'attr':{'id': '...
asked by 23.01.2018 / 23:18
1
answer

org.hibernate.hql.ast.QuerySyntaxException: unexpected token

I have this error when getting the format of a date, I adapted my date with simple date format and I do not get my result:    org.hibernate.hql.ast.QuerySyntaxException: unexpected token: 2017 near line 1, column 101 [SELECT v FROM com...
asked by 20.06.2017 / 18:30
1
answer

Remove Token from FCM

Hi, I have a problem with push notifications using FIREBASE CLOUD MESSAGING, specifically the unsubscribe Token after pressing a button and thus stop receiving notifications. So my question is: How can I unsubscribe a service token or device? I'...
asked by 16.04.2017 / 05:22
2
answers

Consulta about protecting apis and sessions in nodejs

My query is the following, I want to manage user sessions, that is to say an account, have c / u their own things, besides I want to protect my apis, finding out a little, I have seen that I can use jwt in nodejs along with sails for manage the...
asked by 23.09.2016 / 13:58
0
answers

Error with composer: Uncaught Error: Class 'Firebase \ JWT \ JWT' not found in

I'm trying to login with tokens with the JWT library, I already have the composer installed and I'm guiding myself with the following example: require_once 'vendor/autoload.php'; use Firebase\JWT\JWT; $time = time(); $key = 'my_s...
asked by 30.12.2018 / 17:44