Mladen Todorovic
Full Stack Developer | React.js | Next.js | Typescript | MongoDB |
- Report this post
If you are new to the Next.js authentication, check out this simple yet powerful example using the next-auth library!If your user model includes both admin and regular users, you can create a `middleware.ts` file, see down below 👇 🔚In this setup, the middleware ensures exclusive access for admin users to `/admin/path*` routes. Regular users get access to alternative routes, while unauthenticated users are restricted.🔒 Key Takeaways:✨ Simplify Next.js authentication with next-auth.🛡️ Secure admin routes effortlessly.🌈 Grant access based on user roles.🚫 Restrict unauthenticated users proactively.#NextJS #NextAuth #Authentication #DeveloperTips
18
To view or add a comment, sign in
More Relevant Posts
-
Rahul Singh Chauhan
MERN | LAMP | Mentor
- Report this post
How much time does it typically take to develop a production-ready login flow? Any key factors influencing this timeline?#LoginFlow #DevelopmentTimeline #ProductionReady #AppDevelopment
Like CommentTo view or add a comment, sign in
-
Curity
2,193 followers
- Report this post
Take your OAuth expertise to the next level with OAuth Tools. Connect it to any #OAuth server and use it to experiment and test different flows.Learn more: https://bit.ly/4c4gf8y
1
To view or add a comment, sign in
-
Curity
2,193 followers
- Report this post
Take your OAuth expertise to the next level with OAuth Tools. Connect it to any #OAuth server and use it to experiment and test different flows.Learn more: https://bit.ly/3LQzR3Y
2
Like CommentTo view or add a comment, sign in
-
YONGCHAO LI
Web developer
- Report this post
IAM -> SAML -> OAuth 2.0 -> OpenID ConnectAll are set of RFC files.Implementing a homegrown one seems not possible due to the update frequency of these protocols.So, paying for an SDK like: Auth0 is a good idea :-)Of course, ASP.NET always having a friendly one named Duende Identity Server.
Like CommentTo view or add a comment, sign in
-
Ernesto Cullen
Tech Leader en Environics Analytics
- Report this post
First article about securing a resource with OAuth2/Oidc. I will show in small, focused applications how to work with OAuth2 and Oidc. This article obtain the discovery document, looks at its parts and present the most common grant types. In future articles I will develop code to get access tokens on different grant types.
3
Like CommentTo view or add a comment, sign in
-
khaled Nabil
Software Engineer Microservices , OAuth and OpenID
- Report this post
DearsMy revision on oAuth2.0 and Open Id Connectthose links should be seen in order.long video to see the abrstaction behind oAuth and OpenId:https://lnkd.in/dkieTHS7Perfect Revision Document:https://lnkd.in/d9mqeKxFPerfect Demo using Google As Authorization Server:https://lnkd.in/dkGrPDDC
OAuth 2.0 and OpenID Connect (in plain English) https://www.youtube.com/
5
1 Comment
Like CommentTo view or add a comment, sign in
-
Anil Kumar
Expert Gen-AI & Full Stack Developer • Founding Team - @MWT • Teaching 5,00,000+ Students • ReactJS • NodeJS • NextJS • TypeScript
- Report this post
1,000 bots appeared on the website and began exploiting resources. They continuously made API calls, eventually crashing the server.This incident highlighted the critical importance of implementing rate-limiting middleware.Rate Limit with NEXTJS: https://lnkd.in/d8TjDbmc#nextjs
1
Like CommentTo view or add a comment, sign in
-
Galih Lasahido
tech enthusiast
- Report this post
The OAuth 2.0 authorization framework enables a third-party application to obtain limited access to an HTTP service, either on behalf of a resource owner by orchestrating an approval interaction between the resource owner and the HTTP service, or by allowing the third-party application to obtain access on its own behalf.
1
Like CommentTo view or add a comment, sign in
-
Bala Subramaniyan
Open to work
- Report this post
Today learned about OAuth2 Client and to enable google and github link from my application
Like CommentTo view or add a comment, sign in
-
Rio Chandra
Fullstack Web Developer | Node.js Specialist | Tech Enthusiast
- Report this post
Do not handle your user manually. Your resource server only care about authorization, your frontend only care about session. Use OAuth Standard authentication for easy management and secure. I write more about this at https://lnkd.in/g7u6cSSy
6
Like CommentTo view or add a comment, sign in
562 followers
- 2 Posts
View Profile
FollowExplore topics
- Sales
- Marketing
- IT Services
- Business Administration
- HR Management
- Engineering
- Soft Skills
- See All