-
Notifications
You must be signed in to change notification settings - Fork 26
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
OIDC/Auth2 integration #2649
base: feature/keycloak-oidc
Are you sure you want to change the base?
OIDC/Auth2 integration #2649
Conversation
…#2648) Bumps [debugpy](https://github.com/microsoft/debugpy) from 1.8.5 to 1.8.6. - [Release notes](https://github.com/microsoft/debugpy/releases) - [Commits](microsoft/debugpy@v1.8.5...v1.8.6) --- updated-dependencies: - dependency-name: debugpy dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amend the tests for actions that were updated, delete the tests for actions that were deleted.
additional_optional_fields={ | ||
"saml_attr_mapping": { | ||
"type": ["object", "null"], | ||
"properties": saml_props, | ||
"required": ["saml_id"], | ||
"additionalProperties": False, | ||
}, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is going to be empty, you can delete the additional_optional_fields
attribute.
def create_authorization_token(self, user_id: int, email: str) -> str: | ||
try: | ||
response = self.auth_handler.create_authorization_token(user_id, email) | ||
except AuthenticateException as e: | ||
raise AuthenticationException(e.message) | ||
return response.headers.get(AUTHORIZATION_HEADER, "") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
openslides_backend/services/auth/interface.py
defines the interface for this class, including this method. You should remove the method from that place as well
This PR contains a POC for a OIDC/oauth2 integration into OpenSlides. The dev setup is based on keycloak.