Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Which is the best securing option in Asp.net MVC ?

 
Ranch Hand
Posts: 598
3
jQuery Google App Engine Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my Test Engine, I want to impose security by which users won't be able to access the registration page directly, only the people I sent invite will get the authority of registering themselves. For that, I created an invite table in Sql server which has an inviteCode column with uniquieidentifier datatype. To generate 1000 invite codes, I created a stored procedure in sql server itself. In my mvc model, I have a class which fetch these inviteCodes to the Controller. These trick works but I don't think it's the best approach. All top sites have referal link system to invite user , I have no idea how to create referal links ?
 
author & internet detective
Posts: 40552
825
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While we do know about languages other than Java, almost nobody here knows .NET. You might want to ask this question elsewhere to get an answer.
 
Bobby Sharma
Ranch Hand
Posts: 598
3
jQuery Google App Engine Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You got the point, but I like this forum very much so I post here.. I had to leave Java as my company deals only with Microsoft Technologies and I could not find any Java jobs.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've added this thread to "General Computing" forum too.

To me, the question looks more like language independent.


These trick works but I don't think it's the best approach.


It's not the worst either. It's simple and pretty straightforward and without seeing any additional requirements and the volume of such invites, I think that's a pretty good way to implement it.

Are there other requirements/considerations that you have in mind for considering an alternative approach?
 
reply
    Bookmark Topic Watch Topic
  • New Topic