Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

generate token symfony authentication api platform

Linux/Mac
curl -X POST -H "Content-Type: application/json" http://localhost/api/login_check -d '{"username":"johndoe","password":"test"}'
Windows
curl -X POST -H "Content-Type: application/json" http://localhost/api/login_check --data {"username":"johndoe","password":"test"}

output:

{
   "token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXUyJ9.eyJleHAiOjE0MzQ3Mjc1MzYsInVzZXJuYW1lIjoia29ybGVvbiIsImlhdCI6IjE0MzQ2NDExMzYifQ.nh0L_wuJy6ZKIQWh6OrW5hdLkviTs1_bau2GqYdDCB0Yqy_RplkFghsuqMpsFls8zKEErdX5TYCOR7muX0aQvQxGQ4mpBkvMDhJ4-pE4ct2obeMTr_s4X8nC00rBYPofrOONUOR4utbzvbd4d2xT_tj4TdR_0tsr91Y7VskCRFnoXAnNT-qQb7ci7HIBTbutb9zVStOFejrb4aLbr7Fl4byeIEYgp2Gd7gY"
}
Comment

PREVIOUS NEXT
Code Example
Shell :: create bare repository git 
Shell :: use linux to call via android phone 
Shell :: abbreviated stat for git 
Shell :: microsoft team ubuntu 
Shell :: letsencrypt domain error 
Shell :: how to scroll up in linux terminal 
Shell :: /zsh-autosuggestions/zsh-autosuggestions.zsh^M 
Shell :: create rails app 
Shell :: list all local branches off a branhc 
Shell :: how to create a text file list of the contents of a folder 
Shell :: cat linux 
Shell :: flask make host public 
Shell :: no devices connected android studio 
Shell :: rabbitmqctl 
Shell :: shell themes for ubuntu 
Shell :: crear usuario linux comandos 
Shell :: git not recognized 
Shell :: angular install ngx-bootstrap 
Shell :: kubernetes setup 
Shell :: bash shuffle lines 
Shell :: bash reading file wrong 
Shell :: how to make my PS1 in linux the pwd 
Shell :: Install Deno - Scoop (Windows) 
Shell :: copy content from one files to another in linux shell script 
Shell :: batch color change 
Shell :: xsl fo when else 
Shell :: delete all view options mac os 
Shell :: Install Geforce Now on Ubuntu 
Shell :: disable new git experience visual studio 
Shell :: who is affected by meningitis 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =