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

Add DAO layer support to manage the user defined local authenticators #6144

Conversation

Thisara-Welmilla
Copy link
Contributor

@Thisara-Welmilla Thisara-Welmilla commented Nov 22, 2024

@Thisara-Welmilla Thisara-Welmilla force-pushed the add-cutsom-local-auth-mgt-support-dao-new branch from 631d55f to f1a771d Compare November 22, 2024 04:06
@Thisara-Welmilla Thisara-Welmilla force-pushed the add-cutsom-local-auth-mgt-support-dao-new branch from cf879eb to 50d68e1 Compare November 29, 2024 06:00
*/
UserDefinedLocalAuthenticatorConfig addUserDefinedLocalAuthenticator(
UserDefinedLocalAuthenticatorConfig authenticatorConfig, int tenantId, AuthenticationType type)
throws AuthenticatorMgtException;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm actually thinking at the DAO layer we should ideally have an exception type that is different from the service layer which incorporates error codes and messages. However this seems to be the practice we are following. So it's fine to proceed, but some are we need to think through

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Thisara-Welmilla Thisara-Welmilla force-pushed the add-cutsom-local-auth-mgt-support-dao-new branch 2 times, most recently from 3083659 to 02c6b59 Compare December 1, 2024 04:24
@Thisara-Welmilla Thisara-Welmilla force-pushed the add-cutsom-local-auth-mgt-support-dao-new branch from 02c6b59 to 812538e Compare December 1, 2024 14:16
@Thisara-Welmilla Thisara-Welmilla force-pushed the add-cutsom-local-auth-mgt-support-dao-new branch from d6dd220 to d8a8ca1 Compare December 1, 2024 17:11
Copy link

sonarqubecloud bot commented Dec 1, 2024

}

private int getAuthenticatorIdentifier(Connection dbConnection, String authenticatorConfigName,
int tenantId) throws AuthenticatorMgtServerException, SQLException {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you build and throw this AuthenticatorMgtServer Exception here ?
IMO, this should just return the SQL Exception and should have been handled at the same transaction

@Thisara-Welmilla
Copy link
Contributor Author

Reopen with #6172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants