Skip to content

ElyJColmenarez/DynamicForms--api

 
 

Repository files navigation

DynamicForms--api

This project has been made with Laravel 5.1 is used by DynamicForms--app and DynamicForms--dashboard.

About the OAuth2 usage

Grant types: password, client and refresh

Password grant type

servername/oauth/token

{
  grant_type : 'password',
  username : 'username@registered.in.the.app.com',
  password : 'password of the user',
  client_id : 'testclient',
  client_secret: 'testpass'
}

Response

{
  "access_token": "02108d2b51a6cb88842846746f37c30602cec121",
  "expires_in": 3600,
  "token_type": "Bearer",
  "scope": null,
  "refresh_token": "b01b1fe56ec493bc3afd861dfc92cab64523b42c"
}

Refresh grant type

servername/oauth/token

{
  grant_type : 'refresh',
  refresh_token : 'the refresh token given in password grant type',
  client_id: 'testclient',
  client_secret: 'testpass'
}

Response

{
  "access_token": "73b746eb4b2e7188b7fcfbd622e33b6387968e60",
  "expires_in": 3600,
  "token_type": "Bearer",
  "scope": null
}

About

This project creates a web server app that can be used by either DynamicForms--dashboard and DynamicForms--app. Created with Laravel 5.1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PHP 99.2%
  • Other 0.8%