https://github.com/datadavev/fastauth
Simple ORCID auth with fastapi
https://github.com/datadavev/fastauth
Last synced: about 1 year ago
JSON representation
Simple ORCID auth with fastapi
- Host: GitHub
- URL: https://github.com/datadavev/fastauth
- Owner: datadavev
- Created: 2022-12-03T03:33:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-02T01:49:17.000Z (almost 3 years ago)
- Last Synced: 2025-02-02T09:27:26.679Z (over 1 year ago)
- Language: Python
- Size: 87.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FastAuth
Simple OAuth login with thrid party authentication provider.
To deploy:
1. Clone me
2. `cd` to `fastauth`
3. To run locally:
1. Register the address `http://localhost:8000` as an ORCID endpoint at [ORCID developer tools](https://orcid.org/developer-tools)
1. Create a file `fastauth/.env` like `fastauth/sample.env` with values ORCID registration
2. `poetry install`
3. `cd fastauth`
4. `poetry run uvicorn main:app --reload`
5. visit http://localhost:8000
4. To deploy to [deta](https://deta.sh):
1. From the root folder of the repo
2. `deta new --python --name=fastauth fastauth`
3. Register the new deta url as an ORCID endpoint at [ORCID developer tools](https://orcid.org/developer-tools)
4. Create a file `fastauth/.env` like `fastauth/sample.env` with values form the ORCID registration
5. `cd fastauth`
6. `deta update -e .env`
7. Visit the url provided by deta
There's currently a demo on deta at: https://fc845o.deta.dev