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

Firebase database: invalid token in path

my question is this, I´m getting this error: com.google.firebase.database.DatabaseException: Firebase Database error: Invalid token in path, when I update a User´s node which from this code: Map userUpdate = new HashMap<>(); …
Andrey Solera
  • 2,311
  • 2
  • 26
  • 51
2
votes
0 answers

Cannot use token in WSO2 APIM with custom certificate

I a trying to deploy WSO2 API manager (APIM) with a custom valid certificate and to use the option to encrypt in the DB token and secret user information. I can use my certificate all right, its green even in chrome and everything will work: token…
2
votes
1 answer

The Auth0 /userinfo endpoint returns an unauthorized error

It's giving unauthorized as result error even when I pass the bearer token in Node.js application. function getUser(authData){ var postData = querystring.stringify({ authorization: authData }); var options = { host:…
Kokulan
  • 1,316
  • 3
  • 19
  • 35
2
votes
1 answer

HLS with CDN token - iOS

I'm developing an iOS app which is able to download m3u8 videos and play it offline according to the iOS 10 latest feature Offline HLS. I'm trying to protect as best as I can HTTP Live Stream format videos on our CDN. Each video has multiple…
Dev
  • 3,885
  • 10
  • 39
  • 65
2
votes
0 answers

JWT(lcobucci/jwt) - refresh token

I am able to generate the token and validate it. Now, I come across a scenario: How can I keep the active user's token refresh everytime it send request to server? Rather than suddenly logout them out after the default token's expiration time. As…
Louis Lee
  • 281
  • 5
  • 15
2
votes
0 answers

JSON Web Tokens Security

Anyone here knows JSON web tokens. Please enlighten me. Here's my understanding: Client side will request a token by passing username:password or api key:secret key. Server will authenticate it and generate a token that will be sent back to…
Jerome Miranda
  • 321
  • 4
  • 8
2
votes
1 answer

DRF(django-rest-framework) and TokenAuthentication, how to fill json field automatically based Token?

settings.py REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.TokenAuthentication', ), 'DEFAULT_PERMISSION_CLASSES': ( 'rest_framework.permissions.AllowAny', …
H.fate
  • 644
  • 2
  • 7
  • 18
2
votes
1 answer

Unexpected Token 'function'

Strict Import mojo Function Main:Int() CreateMapArray() Return 0 End Function DrawRect:Int(x:Int, y:Int, w:Int, h:Int) Function CreateMapArray:Int() Local MapArray:Int[10][] 'This code is for creating a 2D array to act as a map. …
Steven
  • 61
  • 1
  • 8
2
votes
1 answer

Devise and Devise Token Auth

I am trying to make rails web app along with rails API for mobile app. For this purpose I am using Devise along with Devise token auth. I configured routes as it is written in Devise token auth gem so as I could have routes for regular Devise and…
Marek Michalik
  • 79
  • 3
  • 10
2
votes
1 answer

Antlr (lexer): matching the right token

In my Antlr3 grammar, I have several "overlapping" lexer rules, like this: NAT: ('0' .. '9')+ ; INT: ('+' | '-')? ('0' .. '9')+ ; BITVECTOR: ('0' | '1')* ; Although tokens like 100110 and 123 can be matched by more than one of those rules, it is…
2
votes
0 answers

ADAL.JS token refresh timeout error

I'm calling a custom ASP.NET Web API secured by Azure AD. I'm getting a token refresh timeout error when calling aquireToken. How can I resolve this error?
JohnC
  • 21
  • 2
2
votes
4 answers

HTTP URL token standard

I need to develop a feature in the system which allows unregistered users to get one-off system access via URL token that is generated/sent by an authenticated user. For example, a user logs in and wants to share a piece of information so the system…
mindas
  • 26,463
  • 15
  • 97
  • 154
2
votes
2 answers

How to store/Deserialize/Serialize GenericXmlSecurityToken?

I have built a winforms app in c# to request an auth token from ADFS (windowsmixed), which works fine, and I'm issued a token. I'm using WIF/ThinkTecture IdentityModel. What is the best way to cache/save the token locally and then re-load the token…
Developr
  • 447
  • 8
  • 21
2
votes
0 answers

Token/claims based authentication in .net application (OS)

I've been looking at examples and documentation for using token/claims based authentication in .net applications using wif or thinktecture identitymodel. One example was: Token based authentication But I cant seem to find information regarding how…
Developr
  • 447
  • 8
  • 21
2
votes
0 answers

Token-based authentication in Horizon HTML Access (Horizon View web-client)

I'm working on a web application (lets call it Portal) that provides access to Horizon View 6 based virtual desktops using Horizon HTML Access. I want to be able to automatically login users to their machines once they've authenticated in the…
Eugene
  • 374
  • 1
  • 2
  • 10