-
Notifications
You must be signed in to change notification settings - Fork 546
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
Add DAO layer support to manage the user defined local authenticators #6144
Conversation
631d55f
to
f1a771d
Compare
cf879eb
to
50d68e1
Compare
...ava/org/wso2/carbon/identity/application/common/dao/impl/AuthenticatorManagementDAOImpl.java
Outdated
Show resolved
Hide resolved
*/ | ||
UserDefinedLocalAuthenticatorConfig addUserDefinedLocalAuthenticator( | ||
UserDefinedLocalAuthenticatorConfig authenticatorConfig, int tenantId, AuthenticationType type) | ||
throws AuthenticatorMgtException; |
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.
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
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.
@ashanthamara FYI
...rc/main/java/org/wso2/carbon/identity/application/common/dao/AuthenticatorManagementDAO.java
Outdated
Show resolved
Hide resolved
...ava/org/wso2/carbon/identity/application/common/dao/impl/AuthenticatorManagementDAOImpl.java
Outdated
Show resolved
Hide resolved
...ava/org/wso2/carbon/identity/application/common/dao/impl/AuthenticatorManagementDAOImpl.java
Show resolved
Hide resolved
...ava/org/wso2/carbon/identity/application/common/dao/impl/CacheBackedAuthenticatorMgtDAO.java
Outdated
Show resolved
Hide resolved
3083659
to
02c6b59
Compare
02c6b59
to
812538e
Compare
d6dd220
to
d8a8ca1
Compare
Quality Gate passedIssues Measures |
} | ||
|
||
private int getAuthenticatorIdentifier(Connection dbConnection, String authenticatorConfigName, | ||
int tenantId) throws AuthenticatorMgtServerException, SQLException { |
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.
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
Reopen with #6172 |
Task issue:
With this PR following changes may introduced the dao layer to manage the user defined local authenticator and its related class.
Related PRs:
Add service layer support to manage the user defined local authenticators #6071
Add unit tests for supporting manage the user defined local authenticators #6072
New API /authenticators/custom to manage user defined local authenticators identity-api-server#736