Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ It is a microservice for user administration and authenication, using JWT tokens

## Requirements
- Python 3.12+
- FastApi 0.124+
- FastApi 0.141+
- Google account and activate [Google cloud](https://console.cloud.google.com) to obtain OAuth2 config values (Optional)

> [!IMPORTANT]
Expand Down Expand Up @@ -49,7 +49,7 @@ uvicorn src.main:app --reload
```
7. Open the next url in a browser to see the Swagger UI
```bash
http://127.0.0.1:8000/docs
http://127.0.0.1:7010/docs
```

## Using with Docker
Expand All @@ -63,7 +63,7 @@ docker pull ghcr.io/ablogo/authfastapi:latest
```
2. Run a container from the image previously created
```bash
docker run -p 8000:80 --env-file .env auth-service:latest
docker run -p 7010:80 --env-file .env auth-service:latest
```

## Google OAuth2
Expand Down
16 changes: 8 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
annotated-doc==0.0.4
annotated-types==0.7.0
annotated-types==0.8.0
anyio==4.12.0
bcrypt==4.0.1
certifi==2026.1.4
cffi==2.0.0
charset-normalizer==3.4.4
click==8.3.1
cryptography==46.0.3
dependency-injector==4.48.3
dependency-injector==4.48.2
dnspython==2.8.0
fastapi==0.127.0
fastapi==0.141.1
google-auth==2.48.0
google-auth-oauthlib==1.2.4
h11==0.16.0
Expand All @@ -21,8 +21,8 @@ passlib==1.7.4
pyasn1==0.6.2
pyasn1_modules==0.4.2
pycparser==2.23
pydantic==2.12.5
pydantic_core==2.41.5
pydantic==2.13.4
pydantic_core==2.46.4
PyJWT==2.10.1
pymongo==4.15.5
python-dotenv==1.2.1
Expand All @@ -33,10 +33,10 @@ requests-oauthlib==2.0.0
rsa==4.9.1
setuptools==80.9.0
starlette==0.50.0
typing-inspection==0.4.2
typing_extensions==4.15.0
typing-inspection==0.4.4
typing_extensions==4.16.0
urllib3==2.6.3
uvicorn==0.40.0
uvicorn==0.52.4
uvloop==0.22.1
watchfiles==1.1.1
websockets==15.0.1
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"Authentication microservice, the goal of this project is to learn Python and FastApi"
__version__= "1.0.0"
__version__= "1.0.1"
1 change: 0 additions & 1 deletion src/settings_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class Settings():

def __init__(self) -> None:
try:
print("init 1")
self.DB_URL = os.environ["DB_URL"]
self.DB_NAME = os.environ["DB_NAME"]
self.DB_USERS_COLLECTION = os.environ["DB_USERS_COLLECTION"]
Expand Down