how to avoid authentication

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

  1. #1

    Default how to avoid authentication

    Hi

    All users should authenticate to reach
    some page. How to avoid this for some users.

    Thanks
    Konrad


    Konrad Guest

  2. Similar Questions and Discussions

    1. How can I avoid NaN
      When my .swf loads the variables from the .txt file (days=2&hours=17&minutes=10&seconds=56), the swf file starts and shows seconds "56" for one...
    2. how to avoid cpan indexing ?
      I have a package that is supposed to go to cpan which contains a module that is only needed at build/install time, so it isn't intended for re-use...
    3. How to avoid this
      Hi, I have a project where when the user scroll over the buttons a picture or movie display on the screen. All works fine, but moving between...
    4. Avoid SmartNavigation
      I've done some investigating about various problems with the SmartNavigation feature. It seems to me that the general consensus is to avoid...
    5. Avoid Insert
      I have an insert page and have written some javascript to validate the page. The validation works great but I need to stop the insert if the user...
  3. #2

    Default RE: how to avoid authentication

    Hello Konrad,
    It depends which type of authentication you are using. If it is Windows
    Authentication, you might need
    to create a Windows Groups and allow that group access, and the others
    require authentication.
    If you are using Form Authentication, you might need to use Role
    Authentication.
    Role-based security in ASP.NET is similar to the role-based security that
    Microsoft COM+ and
    Microsoft Transaction Server (MTS) use, although there are important
    differences. Role-based
    security in ASP.NET is not limited to Windows accounts and groups. For
    example, if Windows
    authentication and impersonation is enabled, the identity of the user is a
    Windows identity
    (User.Identity.Name = "Domain\username"). You can check identities for
    membership in specific roles and restrict access accordingly. For example:
    If User.IsInRole("BUILTIN\Administrators") Then
    Response.Write("You are an Admin")
    Else If User.IsInRole("BUILTIN\Users") then
    Response.Write("You are a User")
    Else
    Response.Write("Invalid user")
    End if


    If you are using Forms authentication, roles are not assigned to the
    authenticated user; you must do this programmatically. To assign roles to
    the
    authenticated user, use the OnAuthenticate event of the authentication
    module (which is the Forms
    authentication module in this example) to create a new GenericPrincipal
    object and assign it to the
    User property of the HttpContext.

    For more information, you might refer to the following Kb article:
    306590 INFO: ASP.NET Security Overview
    [url]http://support.microsoft.com/?id=306590[/url]

    Thanks,
    Bassel Tabbara
    Microsoft, ASP.NET

    This posting is provided "AS IS", with no warranties, and confers no rights.


    --------------------
    | From: "Konrad" <konrad007@poczta.onet.pl>
    | Newsgroups: microsoft.public.dotnet.framework.aspnet
    | Subject: how to avoid authentication
    | Date: Wed, 25 Jun 2003 10:41:13 +0200
    | Organization: tp.internet - [url]http://www.tpi.pl/[/url]
    | Lines: 9
    | Message-ID: <bdbn83$111$1@atlantis.news.tpi.pl>
    | NNTP-Posting-Host: pj12.szczecin.sdi.tpnet.pl
    | X-Trace: atlantis.news.tpi.pl 1056530500 1057 217.98.201.12 (25 Jun 2003
    08:41:40 GMT)
    | X-Complaints-To: [email]usenet@tpi.pl[/email]
    | NNTP-Posting-Date: Wed, 25 Jun 2003 08:41:40 +0000 (UTC)
    | X-Priority: 3
    | X-MSMail-Priority: Normal
    | X-Newsreader: Microsoft Outlook Express 6.00.3790.0
    | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
    | Path:
    cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-onlin
    e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshos ting.com!news-xf
    er2.atl.newshosting.com!newsfeed.news2me.com!newsf eed.tpinternet.pl!atlantis
    ..news.tpi.pl!news.tpi.pl!not-for-mail
    | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:154667
    | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    |
    | Hi
    |
    | All users should authenticate to reach
    | some page. How to avoid this for some users.
    |
    | Thanks
    | Konrad
    |
    |
    |


    Bassel Tabbara [MSFT] 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