Skip to content

Accounts management, authentication and authorization#8

Merged
armanddidierjean merged 44 commits intomainfrom
account-creation
Apr 25, 2022
Merged

Accounts management, authentication and authorization#8
armanddidierjean merged 44 commits intomainfrom
account-creation

Conversation

@armanddidierjean
Copy link
Member

@armanddidierjean armanddidierjean commented Apr 10, 2022

Account management

  • Create, recover, update users
  • Email confirmation

Group management

  • Create, modify
  • Default groups and account types

Security

  • Bcrypt hash and verification

Utils

  • SMTP email sender

Authorization

  • OAuth password flow using JWT
  • Groups dependencies using JWT

Tests

  • Async and database support

Tests can now be used and created

Workflow

  • Python basic typechecking
  • Add a .env dotfile

TODO

Use an email and an UUID type
Change cruds parameters and return types
Add loggin

@armanddidierjean armanddidierjean force-pushed the account-creation branch 2 times, most recently from 4b87583 to 09d288a Compare April 11, 2022 18:05
@armanddidierjean armanddidierjean changed the base branch from Database-migration to main April 11, 2022 18:06
@Jake-Ransom Jake-Ransom force-pushed the account-creation branch 2 times, most recently from d0e3d3e to 83610f5 Compare April 14, 2022 09:48
@armanddidierjean armanddidierjean force-pushed the account-creation branch 2 times, most recently from 1db6e96 to 2c1c08e Compare April 15, 2022 19:55
@armanddidierjean armanddidierjean marked this pull request as ready for review April 15, 2022 20:04
Victor-Angot
Victor-Angot previously approved these changes Apr 15, 2022
@armanddidierjean armanddidierjean force-pushed the account-creation branch 2 times, most recently from a1d7119 to f59d939 Compare April 19, 2022 13:13
@armanddidierjean armanddidierjean changed the title Account creation and password reset process Accounts management, authentication and authorization Apr 22, 2022
Victor-Angot
Victor-Angot previously approved these changes Apr 22, 2022
@armanddidierjean armanddidierjean merged commit 5c84e5e into main Apr 25, 2022
Rotheem pushed a commit that referenced this pull request Aug 26, 2025
…heduler to access db (#8)

* Fix user batch invitation response model

* Fix: add missing param in send_emails_from_queue_task

* Get db directly using SessionLocal

* Store state in global Python variable

* Use arq 0.26.3

* Don't keep arq job results after completion

to be able to queue new jobs with the same id

* Cancel planned notification with the same job_id

before queuing a new one

* fixup state

* Access GLOBAL_STATE in tests init

* Remove unexpected state param while disconnecting

* Lint

* Parametrize test_factory fixture

* Lint

* Refactor test settings

* Lint
armanddidierjean added a commit that referenced this pull request Aug 30, 2025
…heduler to access db (#8)

* Fix user batch invitation response model

* Fix: add missing param in send_emails_from_queue_task

* Get db directly using SessionLocal

* Store state in global Python variable

* Use arq 0.26.3

* Don't keep arq job results after completion

to be able to queue new jobs with the same id

* Cancel planned notification with the same job_id

before queuing a new one

* fixup state

* Access GLOBAL_STATE in tests init

* Remove unexpected state param while disconnecting

* Lint

* Parametrize test_factory fixture

* Lint

* Refactor test settings

* Lint
# Conflicts:
#	app/core/users/endpoints_users.py
#	app/types/scheduler.py
#	tests/test_myeclpay.py
#	tests/test_payment.py
armanddidierjean added a commit that referenced this pull request Sep 2, 2025
…heduler to access db (#8)

* Fix user batch invitation response model

* Fix: add missing param in send_emails_from_queue_task

* Get db directly using SessionLocal

* Store state in global Python variable

* Use arq 0.26.3

* Don't keep arq job results after completion

to be able to queue new jobs with the same id

* Cancel planned notification with the same job_id

before queuing a new one

* fixup state

* Access GLOBAL_STATE in tests init

* Remove unexpected state param while disconnecting

* Lint

* Parametrize test_factory fixture

* Lint

* Refactor test settings

* Lint
# Conflicts:
#	app/core/users/endpoints_users.py
#	app/types/scheduler.py
#	tests/test_myeclpay.py
#	tests/test_payment.py
armanddidierjean added a commit that referenced this pull request Sep 2, 2025
…heduler to access db (#8)

* Fix user batch invitation response model

* Fix: add missing param in send_emails_from_queue_task

* Get db directly using SessionLocal

* Store state in global Python variable

* Use arq 0.26.3

* Don't keep arq job results after completion

to be able to queue new jobs with the same id

* Cancel planned notification with the same job_id

before queuing a new one

* fixup state

* Access GLOBAL_STATE in tests init

* Remove unexpected state param while disconnecting

* Lint

* Parametrize test_factory fixture

* Lint

* Refactor test settings

* Lint
# Conflicts:
#	app/core/users/endpoints_users.py
#	app/types/scheduler.py
#	tests/test_myeclpay.py
#	tests/test_payment.py
armanddidierjean added a commit that referenced this pull request Sep 3, 2025
…heduler to access db (#8)

* Fix user batch invitation response model

* Fix: add missing param in send_emails_from_queue_task

* Get db directly using SessionLocal

* Store state in global Python variable

* Use arq 0.26.3

* Don't keep arq job results after completion

to be able to queue new jobs with the same id

* Cancel planned notification with the same job_id

before queuing a new one

* fixup state

* Access GLOBAL_STATE in tests init

* Remove unexpected state param while disconnecting

* Lint

* Parametrize test_factory fixture

* Lint

* Refactor test settings

* Lint
# Conflicts:
#	app/core/users/endpoints_users.py
#	app/types/scheduler.py
#	tests/test_myeclpay.py
#	tests/test_payment.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants