-
Notifications
You must be signed in to change notification settings - Fork 1
[broker-67] Design of authentication mechanism #136
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
base: develop
Are you sure you want to change the base?
Conversation
# Conflicts: # acl-groovy-dsl/src/main/groovy/javasabr/mqtt/service/acl/AclRulesLoader.groovy # application/src/main/java/javasabr/mqtt/broker/application/config/MqttBrokerSpringConfig.java
Test Coverage Report
|
|
|
||
| @Bean | ||
| AuthenticationService authenticationService( | ||
| List<AuthenticationProvider> credentialSource, |
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.
authenticationProviders or credentialSource?
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.
Fixed
| @@ -0,0 +1,5 @@ | |||
| DROP TABLE IF EXISTS user_credentials; | |||
| CREATE TABLE user_credentials ( | |||
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 think for our own version of DB tables we should use Flyway
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.
Sure, let's implement this within the ticket #141
| @@ -0,0 +1,12 @@ | |||
| package javasabr.mqtt.model.message; | |||
|
|
|||
| public interface AuthRequest { | |||
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 think it can be a record. it's not a very intensive operation, we can make it "nicer"
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.
Fixed
#67
The main goal of the PR is to prepare a module and class structures covering the most common authentication mechanisms, so it introduces the following entities: