Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 942 Bytes

File metadata and controls

29 lines (22 loc) · 942 Bytes

ID.me Sample Python Web App

This is a sample seed Python Web App integrated with ID.me via OAuth 2.0

Installation and Setup

In order to run the example you need to have python and pip installed.

First set your client configuration settings in server.py

# server.py
client_id              = 'YOUR_CLIENT_ID'
client_secret          = 'YOUR_CLIENT_SECRET'
redirect_uri           = 'YOUR_REDIRECT_URI'
authorization_base_url = 'https://api.id.me/oauth/authorize'
token_url              = 'https://api.id.me/oauth/token'
attributes_url         = 'https://api.id.me/api/public/v3/attributes.json'

# possible scope values: "military", "student", "responder", "government", "teacher"
scope = ['YOUR_SCOPE_VALUE']

Run the following to install the dependencies and start the server.

pip install -r requirements.txt
python server.py

Now you can view the app at http://localhost:5000