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
25
votes
1 answer

linkedin "this application is not allowed to create application tokens"

My main problem is getting the token. I can’t go further than this step. In the Linkedin API's docs there are two ways described to obtain the token. Witch is the correct one? 1) …
Cess Bucle
  • 277
  • 1
  • 3
  • 3
24
votes
4 answers

Using auth_token from request headers instead from POST/PUT parameters with Rails 3 / devise

I need to use token based authentication in a Rails 3.1 API in conjunction with the most recent version of devise. No problem so far. Now I do not want to append my :auth_token to the POST/PUT parameters on client side but send this token as a…
GeorgieF
  • 2,687
  • 5
  • 29
  • 43
24
votes
3 answers

SignalR authentication with webAPI Bearer Token

+i used this solution to implement Token Based Authentication using ASP.NET Web API 2, Owin, and Identity...which worked out excellently well. i used this other solution and this to implement signalR hubs authorization and authentication by passing…
McKabue
  • 2,076
  • 1
  • 19
  • 34
23
votes
10 answers

error: unable to read askpass response from '/home/.cache/Google/AndroidStudio2021.1/tmp/intellij-git-askpass-local.sh' in ubuntu android studiio

I am trying to push my code to my bit bucket repository but from last few days after update from bit bucket, I have to use token to push code. But I don't know where to add token. Could anyone let me know the entire process for android studio. I…
Harshit Jain
  • 480
  • 1
  • 3
  • 13
23
votes
2 answers

Angular 2/4 where to store token

I have a rest api for generating token, which i'm using in angular 4 client side, but the question is where to store this token. In the internet i found that i can store in local storage or in the cookie. So my question is, if store token is the…
user2870934
  • 679
  • 1
  • 7
  • 22
23
votes
7 answers

string tokenizer in Java

I have a text file which contains data seperated by '|'. I need to get each field(seperated by '|') and process it. The text file can be shown as below : ABC|DEF||FGHT I am using string tokenizer(JDK 1.4) for getting each field value. Now the…
ASD
  • 1,441
  • 3
  • 28
  • 41
23
votes
1 answer

how long is token valid? Django REST Framework

I am using Django Rest Framework token-authentication mechanism. http://www.django-rest-framework.org/api-guide/authentication#tokenauthentication It creates database table with field created with the value equal to the timestamp, when te token was…
andilabs
  • 22,159
  • 14
  • 114
  • 151
23
votes
5 answers

How to login into facebook in WebView if already have access token from FB SDK in Android

I'm developing android app in which I have login via Facebook SDK. In app I also have facebook social comments displayed in webview. But problem is even if user is logged through fb sdk, the webview doesn't know about it and for posting new comment…
bakua
  • 13,704
  • 7
  • 43
  • 62
23
votes
3 answers

elasticsearch - Return the tokens of a field

How can I have the tokens of a particular field returned in the result For example, A GET request curl -XGET 'http://localhost:9200/twitter/tweet/1' returns { "_index" : "twitter", "_type" : "tweet", "_id" : "1", "_source" : { …
Kennedy
  • 2,146
  • 6
  • 31
  • 44
22
votes
2 answers

Can you explain how google authenticator / wireless tokens work?

I've been curious as to how google generates one time log in tokens on an iPhone app without comminicatig with the server when the token is Assigned. The token changes every ten seconds. How does google know what the right token is? I disabled data…
NoviceCoding
  • 6,145
  • 2
  • 27
  • 33
22
votes
1 answer

Updating FCM Token on Flutter App

I have a Flutter app that creates a FCM Token on the first run, like this: _firebaseMessaging.getToken().then((token) { //save my token here }); However, I understand that this token can be refreshed once in awhile. In order to get this new…
Notheros
  • 2,137
  • 9
  • 23
  • 34
22
votes
3 answers

iOS push notifications using TLS certificate vs. using authentication tokens

I am reading the documentation for both push using TLS certificates and push using authentication tokens But besides explaining how to configure each, the articles don't really explain the differences or pros/cons of both approaches. Can somebody…
David Schumann
  • 13,380
  • 9
  • 75
  • 96
22
votes
1 answer

Python Oauth2 - login with Google

I have been searching for 2 days for an answer, but nothing came up. I am trying to make integrate Oauth2 for login with Google on Django. The code I have throws an exception - "The token is invalid". This happens: resp, content =…
Meir
  • 1,943
  • 5
  • 22
  • 38
21
votes
4 answers

Owin Bearer Token Authentication + Authorize controller

I'm trying to do authentication with Bearer tokens and owin. I can issue the token fine using the grant type password and overriding GrantResourceOwnerCredentials in AuthorizationServerProvider.cs. But I can't reach a controller method with the…
Colin
  • 2,442
  • 5
  • 24
  • 30
21
votes
2 answers

How specifically does Laravel build and check a CSRF token?

I'm using Laravel's CSRF protection on my public site. However since Laravel uses a session to maintain this, I'm worried that a user might walk away from their computer and return to a page they have previously left open, only to find ajax requests…
prograhammer
  • 20,132
  • 13
  • 91
  • 118