artshishkin / art-gelenler-event-driven Goto Github PK
View Code? Open in Web Editor NEWTutorial - Event-Driven Microservices: Spring Boot, Kafka and Elastic - from Ali Gelenler (Udemy)
License: Apache License 2.0
Tutorial - Event-Driven Microservices: Spring Boot, Kafka and Elastic - from Ali Gelenler (Udemy)
License: Apache License 2.0
Get rid of duplicating in roles and scopes: SCOPE_app_user_role and ROLE_APP_USER_ROLE
2022-08-22 20:42:31.298 DEBUG [http-nio-auto-1-exec-4] n.s.s.m.e.a.ElasticDocumentController - Auth: UsernamePasswordAuthenticationToken [Principal=net.shyshkin.study.microservices.elasticqueryservice.security.TwitterQueryUser@13dc3696, Credentials=[PROTECTED], Authenticated=true, Details=WebAuthenticationDetails [RemoteIpAddress=127.0.0.1, SessionId=null], Granted Authorities=[SCOPE_openid, SCOPE_email, SCOPE_app_user_role, ROLE_DEFAULT-ROLES-GELENLER-TUTORIAL, ROLE_UMA_AUTHORIZATION, ROLE_APP_USER_ROLE, ROLE_OFFLINE_ACCESS, SCOPE_profile]]
Just discovered this code which appears to mirror the coursework for Ali Gelenler's course on Spring Boot microservices -- are there instructions that allow me to follow the coursework? I've tried compiling the project (first at project root, then at the Section 3 service description in twitter-to-kafka-service project root -- both failed at some peer dependency FFI not being available. Any help is appreciated -- let me know if I can help somehow. -CW cwatsonc
MacOS Monterey 12.5
Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/Cellar/maven/3.6.3_1/libexec
Java version: 17.0.4, vendor: Eclipse Adoptium, runtime: /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "12.5", arch: "aarch64", family: "mac"
mvn_out.txt
Something like so
@Configuration
@Profile("local")
public class AutoCreateConfig {
@Bean
public NewTopic libraryEvents(){
return TopicBuilder.name("library-events")
.partitions(3)
.replicas(3)
.build();
}
}
config-server
twitter-to-kafka-service
kafka-to-elastic-service
kafka-to-elastic-service
Fix to UPPER CASE scope based roles
2022-08-22 20:42:31.298 DEBUG [http-nio-auto-1-exec-4] n.s.s.m.e.a.ElasticDocumentController - Auth: UsernamePasswordAuthenticationToken [Principal=net.shyshkin.study.microservices.elasticqueryservice.security.TwitterQueryUser@13dc3696, Credentials=[PROTECTED], Authenticated=true, Details=WebAuthenticationDetails [RemoteIpAddress=127.0.0.1, SessionId=null], Granted Authorities=[SCOPE_openid, SCOPE_email, SCOPE_app_user_role, ROLE_DEFAULT-ROLES-GELENLER-TUTORIAL, ROLE_UMA_AUTHORIZATION, ROLE_APP_USER_ROLE, ROLE_OFFLINE_ACCESS, SCOPE_profile]]
Provide solution like KeycloakAuthorityConverter from art-campbell-cqrs-microservices
ClientHttpConnector clientConnector = new ReactorClientHttpConnector(
HttpClient.from(getTcpClient())
);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.