×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: bejoy balan
Added: Jul 30, 2020 5:32 AM
Views: 4527
  1. README.md
  2. ID.me Sample PHP Web App
  3. This is a sample seed PHP Web App integrated with ID.me via OAuth 2.0
  4.  
  5. Installation and Setup
  6. In order to run the example you need to have composer and php installed.
  7.  
  8. You also need to set your client configuration settings in a .env file.
  9.  
  10. # .env file
  11. CLIENT_ID=YOUR_CLIENT_ID
  12. CLIENT_SECRET=YOUR_CLIENT_SECRET
  13. REDIRECT_URI=http://localhost:3000/callback.php
  14. AUTH_URL=https://api.id.me/oauth/authorize
  15. TOKEN_URL=https://api.id.me/oauth/token
  16. ATTRIBUTES_URL=https://api.id.me/api/public/v3/attributes.json
  17. Run the following to install the dependencies and start the server.
  18.  
  19. composer install
  20. php -S localhost:3000
  21. Now you can view the app at http://localhost:3000