This repository is here to help development relating to the CATH / SWISS-MODEL (2018 ELIXIR Implementation Study).
General layout:
├── api OpenAPI specification docs
├── docs general project admin
└── perl5 Perl code (tests)
- http://openapi.tools/ -- List of tools, libraries
- https://editor.swagger.io/ -- Live code editor
- https://github.com/openapitools/openapi-generator -- Generate backend code based on OpenAPI document
- Specification docs - https://oauth.net/2/
There are a few different flows according to what particular type of authentication system is required, but typical authentication flow might look like:
- client logs in, server generates token, server sends token back to client
- client adds token to the header of all subsequent requests
- server uses token to validate who is making the request
- server checks that this user is authorised for this endpoint (eg. using OpenAPI spec)
- client logs out