- Видео 36
- Просмотров 128 217
Learn With Ifte
Добавлен 20 окт 2011
Code your way to awesome!
I'm a passionate developer, helping you master Spring Boot, Python, OpenCV, React, and more. Build projects, solve problems, and level up your skills with my clear and concise tutorials. Whether you're a beginner or looking to refine your expertise, subscribe and join the coding community!
✅ For Branding & Business Inquiries
► learnwithiftekhar@gmail.com
I'm a passionate developer, helping you master Spring Boot, Python, OpenCV, React, and more. Build projects, solve problems, and level up your skills with my clear and concise tutorials. Whether you're a beginner or looking to refine your expertise, subscribe and join the coding community!
✅ For Branding & Business Inquiries
► learnwithiftekhar@gmail.com
Setting Up Your First Spring Security Application
Get started with Spring Security in this beginner-friendly tutorial! Learn to secure your Spring Boot app step by step.
In this video, I’ll guide you through creating a Spring Boot project using Spring Initializr, adding Spring Security, and customizing a basic login. We’ll cover essential setup, project structure, and creating your first secured endpoint. By the end, you'll understand the basics of securing your app with Spring Security.
💬 Got questions? Drop a comment below! Don't forget to like, subscribe, and hit the bell icon for updates.
👉 Master programming by recreating your favorite technologies: app.codecrafters.io/join?via=learnwithiftekhar
✅For branding and Business inquiries ► le...
In this video, I’ll guide you through creating a Spring Boot project using Spring Initializr, adding Spring Security, and customizing a basic login. We’ll cover essential setup, project structure, and creating your first secured endpoint. By the end, you'll understand the basics of securing your app with Spring Security.
💬 Got questions? Drop a comment below! Don't forget to like, subscribe, and hit the bell icon for updates.
👉 Master programming by recreating your favorite technologies: app.codecrafters.io/join?via=learnwithiftekhar
✅For branding and Business inquiries ► le...
Просмотров: 200
Видео
Upload image to Spring Boot and display it with Thymeleaf
Просмотров 16821 день назад
In this video, we’ll extend our Spring Boot CRUD application to support file uploads and dynamically display images alongside customer data. *Follow along to learn how to:* • Add a new column in your Customer entity for image names • Implement a file upload service to manage image storage • Validate file size (up to 1MB) and type using JavaScript (jQuery) • Display uploaded images on the home p...
Build a RESTful Web Service with Spring Boot: Easy Step-by-Step Guide
Просмотров 637Месяц назад
Create a basic RESTful web service with Spring Boot in this easy, step-by-step tutorial-ideal for beginners seeking a clear, practical introduction. In this video, we’ll start from scratch and walk through the process of building a simple RESTful web service using Spring Boot. You’ll learn how to use the Spring Initializer to generate a new project, configure dependencies, and set up a basic co...
Spring Boot CRUD App with Tailwind CSS & MySQL
Просмотров 1,7 тыс.Месяц назад
In this tutorial, learn to build a full-stack CRUD app using Spring Boot, Thymeleaf, MySQL, and Tailwind CSS from scratch, ideal for beginners. Get started now! Welcome to this comprehensive beginner-friendly tutorial where we’ll take you step-by-step through building a full-stack CRUD application using Spring Boot. You’ll learn how to implement create, read, update, and delete operations, all ...
Git Checkout Tutorial: Master Switching Between Commits and Branches
Просмотров 49Месяц назад
Learn how to use git checkout to effortlessly switch between commits and branches in Git. Master navigating your project's history like a pro! Have you ever wanted to turn back time in your coding projects or experiment without affecting the main code? In this tutorial, we unlock the power of git checkout. You'll understand what git checkout is, why it's important, and how to use it effectively...
Git Show Tutorial: Inspect Commits and View Changes with 'git show' and 'git ls-tree'
Просмотров 412 месяца назад
Learn how to use git show and git ls-tree commands to inspect commits, view changes, and explore file contents in Git. In this tutorial, we delve into the evolution of your code by examining changes within commits. You'll discover how to: - View specific commits using commit hashes or relative references - Use git show to display commit details and differences - Understand the diff output and h...
Navigating Commit History with git log: GIt Mastery
Просмотров 722 месяца назад
Git log: Learn how to explore your project's commit history step by step using the Git log command. In this video, we'll uncover the story behind your code by mastering various git log options to filter, format, and analyze your commits. Whether you're looking to reverse the commit order, simplify output, limit the number of commits, or search for specific changes, this tutorial has got you cov...
Removing and Ignoring Files in Git
Просмотров 503 месяца назад
In this video, I walk you through how to remove and ignore unwanted files in Git, keeping your repository clean and professional. We explore practical scenarios, like managing log files, compiled binaries, and configuration files, and show how to use .gitignore to prevent these files from cluttering your commits. You'll also learn how to handle files that have already been tracked and how to cl...
Staging Secrets: Mastering Git's Staging Area
Просмотров 563 месяца назад
👉 Master programming by recreating your favorite technologies: app.codecrafters.io/join?via=learnwithiftekhar ✅For branding and Business inquiries ► learnwithiftekhar@gmail.com 📘 Resources Mentioned: 🧑💻 Source Code: ⛔ Background sound: share.epidemicsound.com/ia954g 🤚 In case you want to contact me: ❌ My LinkedIn profile: www.linkedin.com/in/iftekhar-hossain-369bbb6a/ ❌ My X / Twitter profile:...
Your First Commit: Initiating Repositories Like a Pro
Просмотров 543 месяца назад
👉 Master programming by recreating your favorite technologies: app.codecrafters.io/join?via=learnwithiftekhar ✅For branding and Business inquiries ► learnwithiftekhar@gmail.com 📘 Resources Mentioned: 🧑💻 Source Code: ⛔ Background sound: share.epidemicsound.com/ia954g 🤚 In case you want to contact me: ❌ My LinkedIn profile: www.linkedin.com/in/iftekhar-hossain-369bbb6a/ ❌ My X / Twitter profile:...
Git Setup: Setting Up, Configuring, and Choosing the Right Tool
Просмотров 1043 месяца назад
Mastering Git is a crucial skill for any developer. In this video, we'll cover the essential ways to work with Git. We'll start by exploring the benefits of using the command line for Git - it's simple, powerful, and often the only option, especially when working on remote servers. We'll also discuss the advantages of using GUI tools like IntelliJ, SourceTree, and GitKraken, which can make Git ...
Git Mastery: Why Version Control Matters
Просмотров 1124 месяца назад
In this video, we will dive into the basics of Git and explore why version control is essential for developers. Whether you're new to Git or looking for a refresher, this video covers everything you need to get started, including: - What is Git? - The consequences of not using version control - Why do developers rely on Git to manage projects Understanding Git is key to efficient project manage...
Spring Boot OAuth 2.0 Login with GitHub
Просмотров 2074 месяца назад
Unlock the power of GitHub authentication in your Spring Boot applications! In this tutorial, we'll walk you through the process of implementing a seamless GitHub login feature using Spring Security. 🔑 Learn how to: - Set up OAuth2 client registration for GitHub - Configure Spring Security for social login - Customize the login flow and user experience - Handle user information from GitHub Whet...
Dynamic insert update in spring data jpa
Просмотров 2304 месяца назад
Learn how to implement dynamic insert and update in Spring Data JPA with ease! In this tutorial, I guide you through the process of dynamically handling database operations in your Spring Boot applications. Whether you're building complex enterprise applications or simple CRUD apps, understanding dynamic data handling is essential for efficient and flexible development. Key topics covered: - In...
Flyway-Your Database Version Control | Spring Boot
Просмотров 4614 месяца назад
👉 Master programming by recreating your favorite technologies: app.codecrafters.io/join?via=learnwithiftekhar ✅For branding and Business inquiries ► learnwithiftekhar@gmail.com 📘 Resources Mentioned: 🧑💻 Source Code: ⛔ Background sound: share.epidemicsound.com/ia954g 🤚 In case you want to contact me: ❌ My LinkedIn profile: www.linkedin.com/in/iftekhar-hossain-369bbb6a/ ❌ My X / Twitter profile:...
Spring Data JPA: Mastering Native Queries - When, Why, and How
Просмотров 6824 месяца назад
Spring Data JPA: Mastering Native Queries - When, Why, and How
How to Write Effective JUnit Tests for Spring Data JPA CRUD Operation
Просмотров 6645 месяцев назад
How to Write Effective JUnit Tests for Spring Data JPA CRUD Operation
Spring Data Mastery: From Novice to Pro in 2 Hours
Просмотров 8935 месяцев назад
Spring Data Mastery: From Novice to Pro in 2 Hours
Implementing Secure Refresh Tokens in Spring Boot | #2 | Spring Boot JWT
Просмотров 2,1 тыс.8 месяцев назад
Implementing Secure Refresh Tokens in Spring Boot | #2 | Spring Boot JWT
Implementing Secure Refresh Tokens in Spring Boot | #1 | Spring Boot JWT
Просмотров 4,1 тыс.8 месяцев назад
Implementing Secure Refresh Tokens in Spring Boot | #1 | Spring Boot JWT
Spring Boot OAuth 2.0 Login with Microsoft Azure
Просмотров 3,5 тыс.10 месяцев назад
Spring Boot OAuth 2.0 Login with Microsoft Azure
JWT Logout: The Trick You Missed in Spring Security (Solved!)
Просмотров 9 тыс.10 месяцев назад
JWT Logout: The Trick You Missed in Spring Security (Solved!)
Spring Security Fix: 401 vs 403 for JWT Authentication (May Be You're Doing It Wrong!)
Просмотров 9 тыс.11 месяцев назад
Spring Security Fix: 401 vs 403 for JWT Authentication (May Be You're Doing It Wrong!)
Easy JWT Authentication & Authorization with Spring Security | Step-by-Step Guide
Просмотров 73 тыс.11 месяцев назад
Easy JWT Authentication & Authorization with Spring Security | Step-by-Step Guide
Exporting Data to CSV Made Easy in Spring Boot
Просмотров 429Год назад
Exporting Data to CSV Made Easy in Spring Boot
Spring Security 6 JPA Authentication: A Step-by-Step Tutorial
Просмотров 4,1 тыс.Год назад
Spring Security 6 JPA Authentication: A Step-by-Step Tutorial
Spring Security 6: Personalize Your Login Experience
Просмотров 7 тыс.Год назад
Spring Security 6: Personalize Your Login Experience
Boost Your User Experience: Spring Security Social Login in 5 Easy Steps
Просмотров 8 тыс.Год назад
Boost Your User Experience: Spring Security Social Login in 5 Easy Steps
Sending Emails Made Simple: Spring Boot's Game-Changing Approach
Просмотров 1,2 тыс.Год назад
Sending Emails Made Simple: Spring Boot's Game-Changing Approach
hi! you forgot in jwtService to extract "Bearer " from token before getting all things.....String token = jwt.substring(7);
Do we have an OAuth login using Google video
"Great tutorial! 🌟 The step-by-step approach made setting up Spring Security feel much less intimidating. Loved how you explained the configuration process, especially customizing authentication and authorization. Looking forward to more videos on advanced Spring Security topics like OAuth2 or JWT integration. Keep up the awesome work! 💻🔥"
Thanks for the useful video, but this is about implementing OAuth, not SSO?
🎉
thx, very useful! bless
can anyone tell me if a user can have multiple roles?
Good job👌
Practical and Explained, Great Thanks for this video
Please make a video on jwt token based registration and login with access token and refresh token both feature. Thank you.
Got it. Thanks
Sir where is my sql database code? What we have to put names to database and its table name and column names?
All of these are handled by Spring Data JPA. You can watch this video to understand about the JPA. ruclips.net/video/f5v_4SYS_UE/видео.htmlsi=1nPoUhz-fKTKEMTH
Pls share more content on handling securites and authorization and tokens
Nicely explained with Practicals
Thank you! I'm glad you found it helpful.
Excellent
Thank you so much 😀
Thank you
I guess you are using the licensed version of IntelliJ. In Community version, the features of directly connecting with Datasources doesn't exist. You should have informed that in the video... would have helped newbie.
Thank you, now i understand this. 👏
Sir i am getting a SignatureException error can u pls pls pls help
If possible please share your code via GitHub. You can get my email address from my channel description
Great tutorial bro, do you know why I might be getting 403 for all endpoints that require authentication even when I have the valid jwt token inside Authorizatiom heade?
How logout button is working without it's logic ?
excellent videos, best videos for Git! Thank you so much
What is recommended book for this topic 🙏
Thanks for checking out my tutorial! I didn’t read any specific book to learn Spring Data JPA; I primarily relied on the official documentation, which I found to be incredibly detailed and practical. However, I recently came across a book called Spring Data: Modern Data Access for Enterprise Java by Mark Paluch and Oliver Gierke. It’s written by contributors to the Spring framework, so it might be a great resource if you’re looking to dive even deeper into the topic. Let me know if you have any questions-I’m happy to help!
Good video can you recommend the best way to handle with files upload such as image in Spring Boot.
Thanks for watching. I have a plan to make a video on that. Please keep an eye on my channel.
Hi, I have released a video on this topic. please check it out: ruclips.net/video/RiEqsGbA3RA/видео.html
@LearnWithIfte thanks for making this video
This is a Great video, thank you so much. also i have a doubt what if there are two tables like admins seperate tables and user seperate tables, in that case how do we do that ?
Nicely Explained. Thanks!
confusing about generatetoken other tutorial when generateToken they put .setClaims() ,can you explain why they're put it in and this tutorial not put thank you
Thank you for your question! The use of .setClaims() when generating tokens depends on how the developer wants to structure and manage the data within the JWT. In some tutorials, .setClaims() is used to set custom claims (key-value pairs) in the JWT payload, which can include user-specific data like roles, permissions, or any other information needed by the application. It allows for more flexibility but also requires careful consideration of the payload size and security. In this tutorial, we may have skipped .setClaims() for simplicity or relied on a different approach, such as setting claims using .claim() or embedding the necessary information directly using other JWT builder methods. If you’d like, I can provide a breakdown or an example showing how to integrate .setClaims() into the token generation process. Let me know!
Watched and learned from all of the JWT videos. How to create the JWT access token and refresh token for spring boot. Thank you so much sir. Awesome tutorial.
You are genius From where you learn such things?
Great video! I learned a lot about JWT authentication and authorization with Spring Security. Would you be able to create a follow-up video on implementing refresh tokens for JWT? This would be very helpful for building long-lived and secure applications
I'm glad you found the video helpful! I have published videos on refresh tokens. here is the links: ruclips.net/video/nvwKwsJg89E/видео.htmlsi=Fb9mot9tVTLMUROx ruclips.net/video/-DB7zXu8kFU/видео.htmlsi=eupet-HEIXP0XmUx
Hi Sir, Can you please confirm how can make refresh token for OIDC user?
Thank you for your question! To generate a refresh token for OIDC users, you should include the "offline_access" scope when you request authorization. If you have any more questions, feel free to ask!
40:04 from here you just build the project like we know every thing and does not let us understand what you are doing . Please change your video title this si not the step by step guide
I appreciate your feedback! I’ll definitely consider making the steps clearer in future videos. Thanks for pointing that out!
Auth0 is paid or free?
In the security filter chain you made the session policy as stateless and it means you're not saving the session then in the JwtAuthenticationFilter class why are you having this SecurityContextHolder.getContext().getAuthentication() == null validation ? And moreover why are you trying to save the session using SecurityContextHolder.getContext().setAuthentication(authToken) as you're going to have a Stateless policy for session?
Thank you for your insightful question regarding the implementation of JWT authentication in Spring Security, particularly concerning the use of SecurityContextHolder in a stateless session policy. In a stateless security configuration, the server does not maintain any session information between requests. This means that each request must contain all the necessary information for authentication and authorization, typically provided through a JWT (JSON Web Token). The purpose of the JwtAuthenticationFilter is to validate the incoming JWT and establish the user's authentication context for the duration of that request. Why check if SecurityContextHolder.getContext().getAuthentication() == null? This check is crucial because it ensures that the authentication process is only performed if the user is not already authenticated. If the SecurityContextHolder already contains an authentication object, it indicates that the user has been authenticated in the current request context, and there is no need to re-validate the token. This helps to avoid unnecessary processing and potential performance issues. Why use SecurityContextHolder.getContext().setAuthentication(authToken)? Even in a stateless configuration, it is necessary to set the authentication in the SecurityContextHolder for the duration of the request. This allows Spring Security to recognize the authenticated user and apply any security constraints (like method-level security) during that request. The SecurityContextHolder is designed to hold the security context for the current thread, which is why we set the authentication object after validating the JWT. Once the request is completed, the context is cleared, and no session information is retained for future requests. In summary, while the application is stateless and does not persist session information, the SecurityContextHolder is still used to manage the authentication state for the lifecycle of the current request. This approach allows you to leverage Spring Security's features while adhering to a stateless architecture. If you have further questions or need clarification on any specific part, feel free to ask!
This video is helpful, but I'm working on a Hospital Management System I have entities like Doctor, Patient and Admin, how can I integrate JWT to that existing project and allow patients and doctors to view their appointments , and allow patients to book their appointments. How can I implement this? Could you please me on this!
Hey, did you figure this out?
Hello sir, can we store both accessToken and refreshToken in local storage in the frontend. Could you please share any reference of frontend react code with is integrated to this backend implementation. Thank you.
Hello! Yes, you can store both the access token and refresh token in local storage, but it's generally recommended to store tokens securely, such as in HTTP-only cookies, to prevent vulnerabilities like XSS attacks. If you still prefer local storage, just ensure you handle tokens carefully. As for React code integrated with a backend JWT implementation, I don't have a direct reference to share in this comment, but I'll consider creating a video or sharing a repo that covers it in detail. Stay tuned! 😊
Sir, you are amazing. Appreciate your work!!
can it be done with intellij community edition ?
Yes, it can be done. In fact, the IDE doesn't matter; you can do it in any of your favorite IDEs.
Sir, the 2 tutorials were really helpful. Just one question. Can you use the refresh token to access resources like you would with access token? Am I wrong or I dont see any code that would forbid that.
Refresh tokens are only used to generate new access tokens. You cannot access resources with a refresh token because its sole purpose is to obtain a new access token after the original one expires. Unlike access tokens, which are used to authenticate and authorize requests to protected resources, refresh tokens are meant to securely refresh access tokens without requiring the user to log in again.
@@LearnWithIfte Thank you very much for your response. I added "type" claim to each type of tokens to differentiate it.
please make a video on mongotemplate junit test for springboot
I really want to appreciate your efforts I have watched multiple videos but this is the one which i can recommend to everyone Thank you so much for your efforts
Fantastic i normally prefer native query to do database queries than entity getters and setters but one problem with sql native query it does not allow to pass null value , it will always throw a bytea error
Thank for this video.
Nice video
sir can you please do the same in spring mvc project(Using thymeleaf) for frontend
Thank you very much you helped me a lot. And please can you give us the name of the program you used at the beginning of the video
nice
sir,nice video..pls sqitch er ekta complete tutorial banan please...love u sir....
I am using java 1.8 , it is not working after your 6 mins video as well
The minimum required Java version for this is 17.
Excellent!
Iftekhar, I am getting the following exception: io.jsonwebtoken.security.InvalidKeyException: RS256 verification keys must be PublicKeys (implement java.security.PublicKey). Provided key type: javax.crypto.spec.SecretKeySpec. Any suggestions?