Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 934 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 934 Bytes

ISIC OAuth Example

An application demonstrating authentication with the ISIC Archive from a server side Flask application.

Usage

    Client type: Confidential
    Authorization grant type: Authorization Code
    Redirect uris: http://127.0.0.1:5000/authorize
  • Define the necessary environment variables

      export OAUTH_CLIENT_ID="<client-id>"
      export OAUTH_CLIENT_SECRET="<client-secret>"
      export OAUTH_BASE_URL="https://api.isic-archive.com/oauth"
      export OAUTH_REDIRECT_URL="http://127.0.0.1:5000"
      export API_BASE_URL="https://api.isic-archive.com/api/v2"
      export SECRET_KEY="<secret-key>" # change to a long random value in production
  • Run the test application

    FLASK_ENV=development flask run