Skip to content

ImageMarkup/isic-oauth-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Flask application for authenticating with the ISIC Archive via OAuth.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published