Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Implement security in Window Forms Database application

Implement security in Window Forms Database application

Scheduled Pinned Locked Moved C#
questioncsharpdatabasesecurity
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ArjenGroeneveld
    wrote on last edited by
    #1

    Hello, I'm developing database applications in C#. Normally for small group of people. So far so good. I like to implement security. Login plus that the application is responding on the user (group) that logged in. What is the most practical approach to implement security? Arjen Groeneveld

    D R 2 Replies Last reply
    0
    • A ArjenGroeneveld

      Hello, I'm developing database applications in C#. Normally for small group of people. So far so good. I like to implement security. Login plus that the application is responding on the user (group) that logged in. What is the most practical approach to implement security? Arjen Groeneveld

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      You can make use of role based security in your application. Have a predefined set of roles. Assign them the rights as needed. Then assign each user to a particular role. This[^] might help.

      A 1 Reply Last reply
      0
      • D dan sh

        You can make use of role based security in your application. Have a predefined set of roles. Assign them the rights as needed. Then assign each user to a particular role. This[^] might help.

        A Offline
        A Offline
        ArjenGroeneveld
        wrote on last edited by
        #3

        Hi Danish Can you give me some more detail about role based security. For example, how to define the roles and how to link for example the buttons to these roles? What I see as most difficult is how to intermix the enabling and disabling of buttons and menu options depending on the security roles in combination with the "normal" button enabling and disabling business logic. Gr Arjen

        D 1 Reply Last reply
        0
        • A ArjenGroeneveld

          Hi Danish Can you give me some more detail about role based security. For example, how to define the roles and how to link for example the buttons to these roles? What I see as most difficult is how to intermix the enabling and disabling of buttons and menu options depending on the security roles in combination with the "normal" button enabling and disabling business logic. Gr Arjen

          D Offline
          D Offline
          dan sh
          wrote on last edited by
          #4

          When you are authenticating the user, at that point of time you should check the role the user belongs to. Once you get the role, enable/disable the controls. As far as enabling disable of the controls based on the business rules goes, that would happen on some user action after he logs in. So that would not interfere. Here[^] is another article that might be useful.

          1 Reply Last reply
          0
          • A ArjenGroeneveld

            Hello, I'm developing database applications in C#. Normally for small group of people. So far so good. I like to implement security. Login plus that the application is responding on the user (group) that logged in. What is the most practical approach to implement security? Arjen Groeneveld

            R Offline
            R Offline
            realJSOP
            wrote on last edited by
            #5

            This might get you started: User Login For WinForm Applications[^]

            .45 ACP - because shooting twice is just silly
            -----
            "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
            -----
            "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups