Questions tagged [token]

A token is a string of characters, categorized according to the rules as a symbol (e.g., IDENTIFIER, NUMBER, COMMA). The process of forming tokens from an input stream of characters is called tokenization, and the lexer categorizes them according to a symbol type. A token can look like anything that is useful for processing an input text stream or text file.

A token is the smallest part of an input text with a meaning. A token may be a single character, a symbol, a word or anything that is useful for processing an input text. Tokens are used in processing programming languages or natural languages.

The process of forming tokens from an input stream is called tokenization or lexical analysis. A program or function which performs lexical analysis is called a lexical analyzer, lexer, or scanner.

7573 questions
2
votes
1 answer

token is not created in nodejs

I have a function that selects username from mysql database and return results to post request as following: function userAuthentication(user){ var deferred = Q.defer(); pool.getConnection(function(err, connection) { if (err) { var…
Kob_24
  • 592
  • 1
  • 10
  • 26
2
votes
1 answer

Get ASP.NET MVC5 WebAPI token fails sometimes

Get ASP.NET MVC5 WebAPI token fails sometimes Code string GetAPITokenSync(string username, string password, string apiBaseUri) { var token = string.Empty; using (var client = new HttpClient()) { …
NoWar
  • 36,338
  • 80
  • 323
  • 498
2
votes
2 answers

Python Requests API call not working

I'm having an issue converting a working cURL call to an internal API to a python requests call. Here's the working cURL call: curl -k -H 'Authorization:Token token=12345' 'https://server.domain.com/api?query=query' I then attempted to convert…
Maumee River
  • 253
  • 2
  • 7
  • 25
2
votes
3 answers

What encoding is the device token for APNs in?

Is it possible to get the Device Token returned from the application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken method? Since I'm not very good at PHP, I'd like for my user to manually enter…
strange quark
  • 5,205
  • 7
  • 41
  • 53
2
votes
1 answer

Azure Management Rest API Auth token

I want to use the Azure Management rest API to start and stop some Virtual Machines. In the HTTP header I need a Authentication token as described here: Common parameters and headers. I create a new app in the AD Section of Azure portal and added…
Nk SP
  • 822
  • 4
  • 19
  • 37
2
votes
1 answer

Heartbeat/keep-alive service to refresh CSRF token

We have an Angular web application fully service oriented and the ng-front end is consuming the REST web services via ng-services (so far standard). To avoid any automatic POST request from bots or programs we are using a CSRF (Cross-site request…
thegio
  • 1,233
  • 7
  • 27
2
votes
1 answer

Token vs username/password autologin

What are the benefits of autologin with server-generated token if compare with autologin with encrypted username/password stored in cookies? what are the ways to improve token security on a browser? (Means store os, location etc.) UPDATE: pls…
VB_
  • 45,112
  • 42
  • 145
  • 293
2
votes
1 answer

Golang and JWT - Simple Logout

I'm currently working on an API and after a bit of time, I now understand how to use JWT in Go to get a token. With this token, I can keep a user connected but, how can I logout from the client application? Here is my token.go code: package…
Emixam23
  • 3,854
  • 8
  • 50
  • 107
2
votes
1 answer

JWT token How to split claim and signature

In JWT token authentication, it is mentioned the "." is used for splitting the 3 parts of token (header, claim, signature). But in-case if my signature or encoded claim contains the "." it would be difficult the exact content of 3 section. Anybosy…
Mathiyazhagan
  • 1,389
  • 3
  • 13
  • 37
2
votes
1 answer

Web API - Token

My MVC application makes access to my WEB API. To access the WEB API is absolutely necessary to inform a "token". There is a button in the WEB API that generates the token. How to make the Web API application only accepts the token generated by MVC…
Guilherme Ferreira
  • 1,503
  • 2
  • 18
  • 31
2
votes
1 answer

go - oauth2 cannot fetch token: bad request

I write a callback handler to login with Google account: func GoogleCallbackHandler(w http.ResponseWriter, r *http.Request) { conf:=&oauth2.Config{ ClientID:"700740834863-m4om9r91htn19htq2b6a05fu6vu4j7i5.apps.googleusercontent.com", …
necroface
  • 3,365
  • 10
  • 46
  • 70
2
votes
1 answer

Get media from public accounts with instagram API

I'm working for a company that displays content on big screens located on public places like GYMs or waiting rooms. One client asked app that shows Instagram content from celebrities accounts, so I created one using the Instagram API. The problem is…
2
votes
1 answer

oauth2 cannot fetch token: bad request

I write a handler so that when accessing the route /auth/google/callback, I try to login with Google account through OAuth2. The handler is implemented like this: package route import ( "net/http" "golang.org/x/oauth2" …
necroface
  • 3,365
  • 10
  • 46
  • 70
2
votes
1 answer

TokenMismatchException in VerifyCsrfToken on certain pdf files

I have a strange issue with laravel. I am working on a project with a file upload in it. everything works fine except for one pdf file i have on my machine. with that pdf file i get a TokenMismatchException. I tried it on an other projects and…
Maantje
  • 1,781
  • 2
  • 20
  • 33
2
votes
0 answers

WhatsApp Token Generation

I wanna experiment WhatsApp messaging implementation but I am stuck with token generation part. After surfing various platforms I found that Token = MessageDigest of ( "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk" // A constant …
jab
  • 396
  • 3
  • 15
1 2 3
99
100