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

Magento 2 API with Angular 2 Token authentication

This is integration issue. Your help is much appreciated (Hint || Guide) I have both Angular2 and Magento2 (bitnami) installed locally. Magento conf was changed to have the right headers (See below) for CROS. I'm calling Magento2 from Angular2 to…
2
votes
1 answer

How do I set an environment variable on Windows 10, which was generated from GitHub?

I want to make an updater for my Electron application, and I stuck on the GitHub access token. I have generated a token from my GitHub account, and after that, I tried to set that token in my Windows environmental variables. When I go to my…
George C.
  • 6,574
  • 12
  • 55
  • 80
2
votes
1 answer

Understanding password reset in Nodejs and Angular

I am trying to understand how to implement password reset / forgot implementations using AngularJS (1.x) with Nodejs backend. I've read this great post on the backend part for Nodejs. I then read this SO post related to Angular and UI Router. I then…
user3125823
  • 1,846
  • 2
  • 18
  • 46
2
votes
1 answer

angular2-jwt check if token is expired in component?

Is it possible to check whether a id token is expired or not inside a component of angular 2 app? I got an AuthService with the method public isAuthenticated(): boolean { /* check if id_token is expired or not */ return…
Max Solid
  • 1,213
  • 3
  • 21
  • 32
2
votes
1 answer

nextSyncToken is always empty in the list responce

I'm trying to make a google sync method from PHP, and i need to receive the nextSyncToken for the initial sync to make it work. And for some reason it's empty. The connection is made using a access token: public function __construct() { …
C. Vlad
  • 31
  • 1
2
votes
2 answers

Invalidating JWTs on Permissions

Do people typically store permissions in a JWT? I've seen example that might have admin: true or scopes: ['add_foo', 'delete_foo', 'read_foo']. And this seems fine, other that the potentially large size that the JWT could become if there are a lot…
mleonard87
  • 324
  • 1
  • 11
2
votes
1 answer

Convert DAO extraBalance to Ether or Bitcoin

I'm a noob in cryptocurrencies and still hold some DAO_extraBalance tokens in MyEtherWallet. I want to convert these DAO_extraBalance tokens into Ether tokens (ETH) or Bitcoins (BTC). I've browsed through some old messages and found that support to…
Zurin
  • 21
  • 2
2
votes
0 answers

Getting Access Token for Instagram on Python

I just started learning Python and trying to get access token for Instagram. And below is the code that I wrote. from instagram.client import InstagramAPI service_url =…
Ray
  • 383
  • 1
  • 2
  • 9
2
votes
0 answers

How to Get DWR Token in Java

I want to get generated DWR token. I can see it in cookies, but how can I get it in java? I have dwr3.jar and called import org.directwebremoting.json.parse.javacc.Token; in controller. But there is no any getToken() or something similar to getting…
Eniss
  • 975
  • 2
  • 20
  • 40
2
votes
1 answer

JwtSecurityToken different dates than in SecurityTokenDescriptor

I'm implementing mechanizm to manage tokens in my application and I use such code to create JwtSecurityToken var securityTokenDescriptor = new SecurityTokenDescriptor() { Subject = claims, SigningCredentials = signingCredentials, Expires…
Filip Szesto
  • 153
  • 2
  • 14
2
votes
3 answers

Laravel api authorization with api_token

I am trying to create a Laravel API project. So I have this project with basic laravel's scaffolding set up. In my user migration I have added: $table->string('api_token', 60)->unique(); then in my User.php model i have added: protected $fillable…
Manas
  • 3,060
  • 4
  • 27
  • 55
2
votes
0 answers

Trying a REST POST call in C# - using Postman code

I'm doing a side project at work. I have very basic knowledge of HTTP calls so forgive me if I have noob questions. I used Postman (https://www.getpostman.com) to create the JSON response serialization and the call headers and parameters. I am…
Ko Ga
  • 856
  • 15
  • 25
2
votes
4 answers

ASP.NET MVC - append GET value to every URL... ActionLink? Routing? How?

I'm after an elegant way to append a token to each URL in an ASP.NET MVC application. eg: http://mysite.com/?token=81541858 From any given page, when a link is generated (eg through HTML.ActionLink) it should append the existing token to the new…
nathanchere
  • 8,008
  • 15
  • 65
  • 86
2
votes
2 answers

PHP Constant string parameters token

In a system we will be using, there is a function called "uses". If you are familiar with pascal, the uses clause is where you tell your program what dependencies it has (similar to C and PHP includes). This function is being used in order to…
Christian
  • 27,509
  • 17
  • 111
  • 155
2
votes
1 answer

Symfony authentication token getCredentials returning null

I have a TokenAuthenticator which implements SimplePreAuthenticatorInterface, AuthenticationSuccessHandlerInterface and AuthenticationFailureHandlerInterface. It creates a PreAuthenticatedToken token. Within that class I have a method called…
crmpicco
  • 16,605
  • 26
  • 134
  • 210