Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

SSO Migration & Some refactors#7

Merged
ggonzr merged 32 commits intomasterfrom
SSOMigration
Sep 13, 2023
Merged

SSO Migration & Some refactors#7
ggonzr merged 32 commits intomasterfrom
SSOMigration

Conversation

@ggonzr
Copy link
Copy Markdown
Contributor

@ggonzr ggonzr commented Aug 25, 2023

This PR includes a middleware to handle OIDC authentication for Flask applications, also it includes some refactors to stop requiring configuration files to set some required configuration variables, they are now retrieved via the environment.

ggonzr and others added 29 commits January 24, 2023 17:04
Include the OAuth2 authentication middleware for Flask backend applications
Also, register all the dependencies required into a requirements file
Use given_name instead of firstname and family_name instead of lastname
Only keep the access_token and refresh_token. This is going to decrease the size around 40%
Connect directly to CERN SMTP Server
Enable the authentication middleware to only parse external JWT
or handle the OIDC flow by itself
This base test case sets all the preconditions for testing
the functionalities for the middleware
Set dinamically the Secure cookie policy for test environment
Split the error message, for JWT provided via Authorization header, to communicate
only one cause of error: JWT missing or JWT expired
Append username taken from Flask session cookie to the log
Use the data available into UserInfo data object available into AuthenticationMiddleware
This updates the support for applications that rely on this data class to handle user information
Remove support for remote code execution via SSH sessions that rely on
specific VM hostnames
Refresh workflows in Stats2 via HTTP request calls
Update SSO Migration from master
Delete the dependency on credential files
Include required variables via runtime environment
ggonzr added 2 commits August 28, 2023 14:54
By default, this instruction overwrites the configuration given when the SMTP client is created, this leads to try open connections to `localhost`. For details, please see: [SMTP Connect](https://docs.python.org/3/library/smtplib.html#smtplib.SMTP.connect)
Store requested access tokens and reuse them if they are still valid
@ggonzr ggonzr merged commit 2bd7886 into master Sep 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant