Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication setup #316

Merged
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
4f58bc9
auth setup
Sep 19, 2023
223d765
Add OAUTH identity and required
Sep 26, 2023
3c5afa8
Extra error exception added for when the token is not valid yet.
Sep 28, 2023
6cdae7b
Merge branch 'develop' into feature.authenticationwithoauth
Josephine-Rutten Sep 28, 2023
50dd5d2
Changes based on Peter's comments and a TODO added to the /auth/test …
Sep 28, 2023
c4efe49
Merge branch 'feature.authenticationwithoauth' of https://github.com/…
Sep 28, 2023
06bfb98
Made get keys into it's own functions
Oct 16, 2023
fb26083
Removed some code smell, still 2 TODO to do
Oct 16, 2023
19a5544
Make JWT or OIDC option and some small improvements
Oct 20, 2023
34c5005
Made sure all the paths are of type Path
Oct 23, 2023
2397f0f
Improved comments
Oct 23, 2023
c379ca2
Merge branch 'SUNET:develop' into feature.authenticationwithoauth
Josephine-Rutten Nov 14, 2023
3624a39
added neccersary packages
Josephine-Rutten Nov 15, 2023
cf2a9c4
Update requirements.txt
Josephine-Rutten Nov 15, 2023
e25516f
Pre-commit update & formatting
Josephine-Rutten Nov 16, 2023
283bff5
make the key process simpler
Josephine-Rutten Dec 18, 2023
0c7133a
Comment at method
Josephine-Rutten Dec 19, 2023
4d9d17d
Improved security to work with different token types
Josephine-Rutten Jan 3, 2024
d5df744
Make eroor handling simpler
Josephine-Rutten Jan 4, 2024
16b4056
Chasnge Resource operator
Josephine-Rutten Jan 4, 2024
01692a9
Add an auth config option
Josephine-Rutten Jan 5, 2024
b5f681d
Update app_settings.py
Josephine-Rutten Jan 5, 2024
c2a38cf
Update app_settings.py
Josephine-Rutten Jan 5, 2024
1c94c0c
more error catching
Josephine-Rutten Jan 8, 2024
e287f04
Add exception handling
Josephine-Rutten Jan 8, 2024
ffc417b
Update security.py
Josephine-Rutten Jan 8, 2024
1435b15
Added extra error handling
Josephine-Rutten Jan 8, 2024
09ab48c
Add some authorization docs
Josephine-Rutten Jan 8, 2024
f2100f3
Add catching for no email error
Josephine-Rutten Jan 8, 2024
0a2edb1
Added option to have token in query string
Josephine-Rutten Jan 9, 2024
51c57cb
simplefied the connect socket call and removed unneccersary code
Josephine-Rutten Jan 10, 2024
6262f87
verify the token in the connect socket io
Josephine-Rutten Jan 11, 2024
6460ca5
Added scope as a env that can be set from env
Josephine-Rutten Jan 11, 2024
95bb738
better user feedback + error messages instead of data
Josephine-Rutten Jan 15, 2024
6924cfe
Added connection error catching for the wellknown url
Josephine-Rutten Jan 15, 2024
5afbf11
Add documentation auth_config
Josephine-Rutten Jan 15, 2024
4b703a2
Add excample auth_conf file
Josephine-Rutten Jan 15, 2024
308c0b5
Update auth_config.yml
Josephine-Rutten Jan 15, 2024
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
Prev Previous commit
Next Next commit
Chasnge Resource operator
  • Loading branch information
Josephine-Rutten committed Jan 4, 2024
commit 16b40567b9900c99c215f397ed8ee16ae0fd082a
2 changes: 1 addition & 1 deletion src/cnaas_nms/tools/security.py
Original file line number Diff line number Diff line change
@@ -175,7 +175,7 @@ def get_oauth_identity():

# check which method we use to log in and load vars needed for that
if auth_settings.OIDC_ENABLED is True:
oauth_required = MyResourceProtector()
oauth_required = ResourceProtector()
oauth_required.register_token_validator(MyBearerTokenValidator())
login_required = oauth_required(optional=not auth_settings.OIDC_ENABLED)
get_identity = get_oauth_identity