ASP.NET security control

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default ASP.NET security control

    Hi All,

    I will be writing an asp.net application which require users to log on
    before they can view the particular information.
    so here the security control is needed and a must for different user who
    have various access level.

    I am wondering what is the best way or a more reliable way to control the
    user ?
    my backend using SQL server.

    thank you.


    PK Guest

  2. Similar Questions and Discussions

    1. ASP.net control Security
      Hi All, I have created a custome control for ASP.net. That control has lot of javascript files & images. Is there any way to protect those from...
    2. Security question for a Winforms user control on a web page
      I have a winforms user control that I need to use in our web page. The control connects to a remoting object. When I try and make the initial...
    3. Get UserGroup of Active Directory to control the security
      Hi, I have an ASP.Net Intranet App with C#. I don't need to ask users about by User and PWD since they are already logged in. This is acheived...
    4. Can't configure security for client side control
      I've created a Windows.Forms control and placed it on an aspx page with the <object> tag and verified that it works nicely. But, when I add...
    5. WindowsForm control gives security warnings under IE
      I have written a .NET WindowsForm control which is deployed on the server and runs on the client machines in the IE browser. All the control is...
  3. #2

    Default Re: ASP.NET security control

    I have a three objects that assist my team in doing exactly that.

    I have a SecurityProvider, Page, SecurityHandler.

    The SecurityHandler is an abstract class that holds IsSecurityValid,
    CanViewPage, RedirectOnFailure, BuildSecurity. The class derived for each
    application must implement these methods.

    When my Page object is loading, it looks through the SecurityProvider
    (mostly static methods) to see if a SecurityHandler was initialized for the
    project (on application start), if it was, it will call IsSecurityValid (if
    failure, call BuildSecurity, if failure call RedirectOnFailure), if the
    security information is valid, it will call CanViewPage, passing the current
    page name for the current request. ( if failure, it calls redirect on
    failure ).

    Now the SecurityHandler stores a table of pagename, security, and special
    permissions that the page object exposes through its Security property (if
    the handler was initialized otherwise an exception is thrown). The page
    developers can also request special permission for pages ( such as can this
    user view change infromation on the page.) The Security property also
    stores (as defined in the BuildSecurity method) data on the specific
    session, such as name, group, role, etc.. that can be easily accessed at the
    page level.

    The security for all our apps are driven by Sql and loaded once during page
    information.

    HTH,

    bill

    "PK" <kerks@po.jaring.my> wrote in message
    news:#MlY6O0VDHA.1480@tk2msftngp13.phx.gbl...
    > Hi All,
    >
    > I will be writing an asp.net application which require users to log on
    > before they can view the particular information.
    > so here the security control is needed and a must for different user who
    > have various access level.
    >
    > I am wondering what is the best way or a more reliable way to control the
    > user ?
    > my backend using SQL server.
    >
    > thank you.
    >
    >

    William F. Robertson, Jr. Guest

  4. #3

    Default Re: ASP.NET security control

    Could you send some sample application for me ?


    "William F. Robertson, Jr." <wfrobertson@kpmg.com> wrote in message
    news:u$uQLp4VDHA.2340@TK2MSFTNGP10.phx.gbl...
    > I have a three objects that assist my team in doing exactly that.
    >
    > I have a SecurityProvider, Page, SecurityHandler.
    >
    > The SecurityHandler is an abstract class that holds IsSecurityValid,
    > CanViewPage, RedirectOnFailure, BuildSecurity. The class derived for each
    > application must implement these methods.
    >
    > When my Page object is loading, it looks through the SecurityProvider
    > (mostly static methods) to see if a SecurityHandler was initialized for
    the
    > project (on application start), if it was, it will call IsSecurityValid
    (if
    > failure, call BuildSecurity, if failure call RedirectOnFailure), if the
    > security information is valid, it will call CanViewPage, passing the
    current
    > page name for the current request. ( if failure, it calls redirect on
    > failure ).
    >
    > Now the SecurityHandler stores a table of pagename, security, and special
    > permissions that the page object exposes through its Security property (if
    > the handler was initialized otherwise an exception is thrown). The page
    > developers can also request special permission for pages ( such as can
    this
    > user view change infromation on the page.) The Security property also
    > stores (as defined in the BuildSecurity method) data on the specific
    > session, such as name, group, role, etc.. that can be easily accessed at
    the
    > page level.
    >
    > The security for all our apps are driven by Sql and loaded once during
    page
    > information.
    >
    > HTH,
    >
    > bill
    >
    > "PK" <kerks@po.jaring.my> wrote in message
    > news:#MlY6O0VDHA.1480@tk2msftngp13.phx.gbl...
    > > Hi All,
    > >
    > > I will be writing an asp.net application which require users to log on
    > > before they can view the particular information.
    > > so here the security control is needed and a must for different user who
    > > have various access level.
    > >
    > > I am wondering what is the best way or a more reliable way to control
    the
    > > user ?
    > > my backend using SQL server.
    > >
    > > thank you.
    > >
    > >
    >
    >

    PK Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139