This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Conversation
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%
Since Python 3.10, the TLS stack has been upgraded and it disables this cypher by default Re-enable this feature to properly communicate with some CERN web servers For more details, please see: 1. https://stackoverflow.com/questions/71006708/getting-sslv3-alert-handshake-failure-when-trying-to-connect-to-imap 2. https://bugs.python.org/issue43998
Connect directly to CERN SMTP Server
Update SSO migration branch
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
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)
Delete connect() instruction
Store requested access tokens and reuse them if they are still valid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.