/Plugin-Auth-Test

This is an example repository for authorisation plugins. It works by defining the API request needed to acquire an access token.

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Plugin-Auth-Test

A very small test plugin to test the authorisation interface is working for SynBioHub. Could be the basis for other python based authorisation plugins. The plugin has a status, login, refresh, and logout endpoint. The login, refresh, and logout endpoints returns the format required for an API request to the relevant endpoints. It can be tested using the server found at: https://github.com/SynBioHub/Auth-Testing

Install

Using docker

Run docker run --publish 8101:5000 --detach --name python-auth-test-plug synbiohub/plugin-auth-test:snapshot Check it is up using localhost:8101.

Using Python

Run pip install -r requirements.txt to install the requirements. Then run FLASK_APP=app python -m flask run. A flask module will run at localhost:5000/.