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
-
51
votes1
answer7183
viewsWhat is it and what is JWT for?
I saw in some comment here on the site, in some question, talking about JWT to solve an authentication problem. I had seen the term vaguely before and I thought it was something from Java (hehehe).…
-
17
votes1
answer1019
viewsHow to send Tokens from server to client?
I am creating an API, I use authentication via Token (JWT), I want this token to be valid for, for example, 10 minutes, and, with each request, return a new Token, so the user will have access while…
-
12
votes2
answers4482
viewsWhat are refresh token, access tokens and Grant type?
I was researching security in REST Apis and found the terms refresh tokens, access tokens and Grant type referring to how tokens work and how the customer requests the features What they are and…
-
9
votes1
answer1639
viewsWhat is Access Token? What is it for?
What exactly is an Access Token? What is an Access Token for in an API application? I would like an answer addressed to Node.js, but I believe that API creation exists in several languages, so I do…
-
7
votes1
answer3851
viewsHow to generate secure tokens dynamically
Various applications use token authentication to maintain secure network communication. However, using dynamically generated tokens, the probability of breakage decreases greatly. So there is the…
-
5
votes1
answer821
viewsHow does Django create and verify tokens to reset password?
Considering a model to reset password already implemented by Django, in the following views: Django.contrib.auth.password_reset Django.contrib.auth.password_reset_done…
-
5
votes1
answer3871
viewsLocal Storage or Cookie, where is it best to store an authorization token?
We have a project and we will use a token de autorização, we’re using AngularJs to the front end and the back we develop in Java using Spring Framework and Spring Security, and send the token for…
-
5
votes1
answer1207
viewsHow to access a specific http header?
I have a Rest API in Java, which makes use of JWT to authenticate users and generate tokens to access their resources. I have an application in Angularjs, which should consume these resources, but I…
-
5
votes1
answer497
viewsWhere and how to save the API authentication token?
Hello, I’m with an angular application, which will consume a API. For that to happen, I must send one POST to another API, which serves only to generate a token that I will pass on all other…
-
4
votes1
answer1918
viewsWEBAPI AND A3 CERTIFICATE - TOKEN
Can anyone here use A3 type certificate for a WEBAPI ? Because when I test it in debug (i.e., local), everything works normal. But if I compile, and put in the IIS application, keeps returning me…
-
4
votes1
answer2976
viewsHow to get request header by passing Authorization Bearer using Datasnap
I’m using Delphi XE7, have a WebService REST made from the DataSnap REST, I need to get the bearer-token past Header by the customer, only that the DataSnap REST by default it executes as Basic.…
-
3
votes2
answers1523
viewsHow do asymmetric signatures work in JSON Webtokens (JWT)?
I recently started to study the possibility of starting to use JSON Webtokens in my projects, given their advantages. From what I understand, there is a symmetrical form and an asymmetric way of…
-
3
votes1
answer90
viewsWhat are considered operators in the programming language?
I was wondering if a token is considered an operator when performing an action?
characteristic-language operators syntax language-independent tokenasked 5 years, 1 month ago Hyago M. Vale 33 -
2
votes1
answer742
viewsParser misidentifying tokens (Flex and Bison)
I am implementing a compiler based on the Tiger language proposed by Andrew Appel’s book "Modern Compiler Implementation in C". Link: https://www.cs.princeton.edu/~Appel/Modern/c/project.html I’m…
-
2
votes1
answer1139
viewsWeb API - Token
A MVC application accesses WEB API services. To access the WEB API it is necessary to inform a "token". In the WEB API application there is a button that generates the token. How to make the WEB API…
-
2
votes1
answer82
viewsToken Provider Asp.Net Webapi
in the company we work we do authentication and authorization via Bearer Token in an Asp.net webapi app, but I keep some information about user permissions with Claims... and this makes Token look…
-
2
votes1
answer312
viewsReceive Token through Webrequest?
Guys is there any way I can generate a token through a Webrequest? Because every time I use the Google Drive function I need to open the authentication page only to generate the Access Token, there…
-
2
votes2
answers42
viewsModifying my Isauthenticated value in Angularjs
When the token is different from null my Isauthenticated has to be positive, app.controller("HomeCtrl", function ($scope, $location) { let token = localStorage.getItem("token"); $scope.user =…
asp.net-mvc angularjs validation angularjs-scope tokenasked 7 years, 8 months ago Jefferson Souza 167 -
2
votes1
answer169
viewsWhat are the "User" and "Cancellationtoken" parameters for?
I’m doing an implementation with the API from Google Drive, and in the code block: credenciais = GoogleWebAuthorizationBroker.AuthorizeAsync( GoogleClientSecrets.Load(stream).Secrets, new[] {…
-
2
votes1
answer619
viewsSend data via post
I have the following method namespace App\Http\Controllers; use Illuminate\Http\Request; use Validator; use App\Pessoa; class PessoaController extends Controller { public function lista( Request…
-
2
votes1
answer227
viewsHow to send an Authorization TOKEN and parameters to perform an INSERT in my API?
My API works correctly. I can enter data into the database through it with POSTMAN, but I would like to do this in c#. This second image is from the creation of a token of mine.…
-
2
votes1
answer721
viewsQuestions about Authentication Token (JWT)
For a while I used the Json Web Token (JWT) to do the entire authentication process of most systems on which I work on Node.js. But today, developing one of my personal projects, I took a look at…
-
1
votes0
answers26
viewsFoursquare app
I’m creating an app foursquare, but I’m not being able to use endpoint users/request. I wanted to send a friend request via api, I know it’s possible why the site knew with. can do. From what I…
-
1
votes0
answers166
viewsSpring Security and Shiro -> How to authenticate a user in Security and pass a token to Shiro
I have two web apps: the first web application is using Spring MVC and Security and makes user authentication in the database. And works very well, thank you. The second web-app are using Shiro for…
-
1
votes0
answers296
viewsAuthentication using Token With Devise Rails
Staff need help implementing authentication by token, I already created the models, the application is working properly, now I need to improve security. The customer will send me registration and a…
-
1
votes1
answer355
viewsHow to request access token server, only via frontend securely, without human interaction?
Good guys. I got into this: I have an application in the frontend of a server, which needs to communicate with a Rest API on another server, without the client having to log in. The app that will…
-
1
votes0
answers935
viewsGoogle Calendar Api
I’m having problems with Google Calendar Access Token. Okay, here’s the problem. I have to synchronize the calendar of my application with Google Calendar, and users will provide their emails for…
-
1
votes1
answer438
viewsApp webview Session or cookie
Hey, you guys! I’m creating an app (hybrid) for android, from HTML5, CSS and JAVASCRIPT, like Webview. I will use API through PHP using MYSQL, exchanging information with JSON. My question is this,…
-
1
votes0
answers59
viewsAngular sending data with token
Personal a doubt that for many it is very basic, but I did not understand yet, I have an application on . net and one in angular receiving the token, the two are OK with the Token storage and the…
-
1
votes1
answer300
viewsHow to send browser token to server?
How to send jwt token from browser to php server each request? Every time I study about using a token only shows how to create, not how to actually use, in the image below shows that you return the…
-
1
votes0
answers18
viewsSend csfr_token from a client
I wonder if you have how to send a csrf_token from a client application to my webservice Or do I have to disable Laravel TOKEN check? If you can send it, how is it? That I want to test from Postman…
-
1
votes1
answer264
viewsAbout URL with token
Good night! Just take a doubt. I am developing an android application and will receive information in json, but when login, it would be more or less like this http://exemplo.com/auth/login/senha if…
-
1
votes0
answers21
views -
1
votes2
answers1043
viewsHow to use token authentication with Webapi . Net
I’m looking at some sites about token-based authentication using the Oauth library but a question has arisen. I have a webapi that already exposes services to both an App and a Site. We already have…
-
1
votes1
answer60
viewsStringtokenizer with String delimiter does not work
I have to wear one string tokenizer to share a string in Java. the code is like this: StringTokenizer st1 = new StringTokenizer(palavra, "--"); But when I enter the following string: 1 - -- * d 2…
-
1
votes1
answer914
viewsHow can I get the JWT token after authenticating?
I have a spring-boot Rest API which, when a user authenticates the api returns the jwt token, I noticed in the browser that the token appears in Response Header > Authentication and in tests with…
-
1
votes1
answer304
viewsTimer with active session time: Cookie expiration time - autal moment
I am working with Angular and, when I store the access token in a cookie, I also save (in another cookie) its expiration time (30 minutes). I want to make a timer that shows the user how long he…
-
1
votes2
answers398
viewsRegistration with e-mail confirmation with token - PHP
Currently, what is the best way (the most secure and efficient) to require the user to confirm the registration through a link sent in the email informed, what should I pay attention in this…
-
1
votes1
answer418
viewsAvoid simultaneous user access
I need to make the user not log in to the system (asp-net mvc) on different machines. The system is on the intranet and currently there is an Access table with date and time of access of the user…
-
1
votes1
answer393
viewsWhat is the advantage of using a Refresh Token instead of just the Access Token?
I understand the difference between Access Token and Refresh Token, there already exists a question about it here at Sopt. I also saw Soen issues involving the use of Refresh Token. Amid spend a…
-
1
votes0
answers38
viewsProblem with Oauth2 and PHP to enter with Facebook
On my site I have the option to login with your Facebook account to store your creations and etc.. It always worked well after implementation, however, without any changes in data or files,…
-
0
votes1
answer180
viewsProblems with tokens stored in Session?
I am developing an application in php and in the authentication part I have the following code : public function chamaApi(){ // chamada na api via curl $profile = json_decode($response);…
-
0
votes1
answer816
viewsSecurity Authentication Token Django Rest Framework
Good guys I’m using DRF(I’m novice rs), to mount a small API. The problem comes in authentication... thinking about expanding my API to use in a mobile app in the future, I’ve been wanting to use…
-
0
votes1
answer91
viewsLog into site using Satellizer.js
I need to make an application where the user can login through facebook and Soundcloud, and I found this https://github.com/sahat/satellizer to do this, and according to this page…
-
0
votes1
answer98
viewsError generating Email Confirmation Token in Asp.MVC
I made an application that uses the Asp.Net MVC login system. I have tested locally the sending of the token for e-mail confirmation and it works perfectly, but when I went up to Azure in the Webapp…
-
0
votes1
answer145
viewsIs there any risk in using Django’s Token generator in different services?
Assuming I’m already using the library django.contrib.auth.tokens.default_token_generator generating tokens to reset a user’s password, and want to use the same method to activate the user, or for…
-
0
votes0
answers15
viewsManagerengine xml problem
Hello, <operation name="GET_REQUESTS"> <result> <status>Failed</status> <message>POST_ONLY_URL</message> <error_code>4001</error_code> </result>…
-
0
votes1
answer4306
viewsLaravel 5 - Tokenmismatchexception in Verifycsrftoken.php line 67. How to solve this without using the FORM class?
I have a php/Html project and I’m passing it to Laravel. Which means a lot of stuff I won’t create from scratch and I want to make the most of what’s already written. At the moment I am working with…
-
0
votes1
answer304
viewsWhich method to use Sharedpreferences best?
I have an application with a webview in which a token returns when the user logs in. I need to save the user information to perform the auto-login the next time he logs in, I intend to do so using…
-
0
votes1
answer37
viewsseparating information that is in the string type in Angularjs
I have the following code: app.controller("LoginCtrl", function ($scope, LoginAPI) { $scope.doLogin = function (model) { if (model.username === undefined || model.password === undefined) { return…