Most voted "token" questions
Used to refer to the use of electronic keys and/or access keys.
Learn more…77 questions
Sort by count of
-
0
votes0
answers115
viewsCSRF token is only valid after first ajax request
I am building a login system via ajax and using a token, saving in a SESSION, passed by javascript, the idea is that each page "Reload" is created a new token to avoid Force and etc, but as I am…
-
0
votes2
answers577
viewsPass Token by header to each Angularjs request (Authorization )
I have the file interface-Factory.js which is my factory app.factory('interfaceAPI', function ($http) { var _getInterface = function () { return $http.get("/api/interfaceapi/getall"); }; var…
-
0
votes1
answer290
viewsPick only numbers from a String (Tokenizer)
Hello, I’m doing a project with stack and queue, and I’m in a part I need to pick up the operator and put in a pile and the number in a queue. However this part of taking the number is not working,…
-
0
votes1
answer651
viewsHow to implement an authentication service in a SOA project
I am developing a project using SOA where I have a web application made in Angular 2 and several micro services in Spring Boot, among the services there are authentication and notification services…
-
0
votes1
answer380
viewsHow to persist and update oauth 2.0 Access Token from Google?
I have a Google Analytics account and need Token Access to make some requests that return data from this account. Whenever I use oauth to authenticate it works, however, when I change page the data…
-
0
votes1
answer816
views -
0
votes2
answers189
viewsLaravel 5.1 problem with csrf_token
I’m having a problem on my site made in Laravel, it happens the following my application in Laravel is not returning the session Token that would be {{ csrf_token() }} when I execute an action as…
-
0
votes1
answer179
viewsLaravel 5.4 (1/1) Tokenmismatchexception
Locally all forms work, but when I put online is giving erro as if I didn’t have the _token attributed to forms. APP_NAME=MonkStudio APP_ENV=production…
-
0
votes1
answer1564
viewsHow to use token to validate a Django Rest Framework user login
Hello, I’m a little lost when authenticating a user by Django-Rest-framework, I was following the tutorial of the channel Codingentrepreneurs in the video 32 of the Blog API…
-
0
votes1
answer84
viewsLogin to Swift Authorization
I’m consuming data of a certain API for login, she returns the Token of correct access, and otherwise returns the ERROR, but I cannot move to another screen if the fields are filled correctly,…
-
0
votes0
answers65
viewsHow and where to call the method of creating a Token in the Webapi to perform the validation of my user?
Good night! I’m doing a user authentication using HMACSHA512, but I’m having a hard time calling the authentication method at project start and in my controller (I’m using .NET). I did it in . NET…
-
0
votes1
answer40
viewsRedirect user without token
Talk guys, good morning, so I have a problem and I’m not sure how to solve, (maybe it’s in the way I implemented it), well: i am saving a user and his token every time I log in to my platform, in…
-
0
votes1
answer136
viewsHow do I validate access to an API for only the licensed domain?
I’m looking for original ideas on how to validate access to a php API for only the domain that paid for the license, since SERVER['HTTP_REFERER'] unreliable. I created a json activation key and…
-
0
votes1
answer509
viewsHow to Get Header Information in Post Request, Ionic 3
Hello, I need to get the Token that returns in Header after I run a POST, I would like to know a way to achieve this, I am using Ionic 3 with Angular. What is the best way to get the Authorization…
-
0
votes1
answer140
viewsAPI testing by passing token
Good morning, I’m doing Api Testing, as follows the example: @Test public void shouldStatus200_FindAll() { RestAssured.enableLoggingOfRequestAndResponseIfValidationFails();…
-
0
votes0
answers271
viewsProblem extracting token from incoming request header in Spring boot. Httpservletrequest.getHeader("Authorization") == null;
I made a CRUD API using Spring boot and used authentication and authorization in this CRUD with JWT (JSON web token). I have a tokenFilter class in my API which is responsible for validating tokens…
-
0
votes0
answers20
viewsWhat would be a good practice for updating Tokens to avoid a 401 return
Guys, I have a problem where the token ends up expiring at the time of a request POST. I currently update the token on expiry of the token: keycloak.onTokenExpired = async () => { await…
-
0
votes1
answer951
viewsHow does csrf-Protection work in Codeigniter?
Today while working on a codeigniter project, I came across the concept CSRF - Cross-site request forgery. This happened when I got error 403 - permission denided when making a GET request in AJAX…
-
0
votes0
answers82
viewsSend an external API token with request in Node.js
I’m new to Node.js, I have a question maybe easy to resolve... I have an Node.js application that communicates with external API in php, send and receive information through tokens, and I found a…
-
0
votes0
answers16
viewsHow to correctly pass an authorization token in the header using Javascript and the Papa Parse library?
I’m using the library Papa Parse in Javascript to download some dataset in CSV format and then read the data. It was working perfectly until they implemented a token authentication in the database.…
-
0
votes1
answer53
views -
-1
votes1
answer282
viewsProhibit direct access to a URL (JS)
I made a site, and in it I need to prevent them from entering it by accessing the URL, but I did not create Session in PHP pq login validated with token by jwt with js. Have some safe way to only…
-
-1
votes1
answer223
viewsLaravel jwt token
I am using tymondesigns/jwt-auth to generate token Is working The problem is that I want to change the validity time of the token to 1 minute to do tests I changed the jwt.php file: 'ttl' =>…
-
-1
votes1
answer152
viewsHow to protect a php page that runs something
I am developing a very basic system, just for study. During the development, I had a question. In my system I have a page called register Customer.php that when submitting a form, it will execute an…
-
-1
votes1
answer56
viewsHow to modify a token (Spacy - Python)?
The imported libraries: import spacy from spacy.matcher import Matcher The following code adapted from the selected response of this https://stackoverflow.com/questions/62785916/spacy-replace-token…
-
-2
votes2
answers961
viewsHow to hide javascript API access data?
How do I hide this information that I pass as a parameter to the token request? the way anyone can see and cannot var chaveToken = { "grant_type": "password", "username": "[email protected]",…
-
-2
votes0
answers13
viewsAutomatic JWT authentication with onClick function
I am creating a web service to consume an api and facilitate scheduling events on google Calendar. To access this data it is necessary that the user uses a JWT token to be able to request the data…