Need info on how to test for roles defined in web.config.

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

  1. #1

    Default Need info on how to test for roles defined in web.config.

    I am using forms based authentication. I would like to be able to determine
    if a user has access to a specific web page through some automation method
    without having to put specific code in the page to see if it is restricted.

    I was looking at the web.config parameters for location element and thought
    this would be a good place to start. However, I cannot figure out how to
    have the page test to see if the required roles for the location are valid
    based on the identity object of the logged on user. Is there some standard
    way of doing this?

    So far I have authenticated the user, and now want to limit the access of
    certain pages based on the defined roles that the user has vs. what the page
    allows.

    --
    -----------------------------------
    Ken Varn
    Senior Software Engineer
    Diebold Inc.

    EmailID = varnk
    Domain = Diebold.com
    -----------------------------------


    Ken Varn Guest

  2. Similar Questions and Discussions

    1. CFMX Mail Config Info (Win2003)
      My automated ResendUndeliverableEmail routine quit working since upgrading to CFMX because the spool/undelivr directory locations are no longer...
    2. How can the location roles be read from the web.config file?
      Security Experts, I have a config file such as this: <configuration> <system.web> <!--- other stuff goes here --> <authentication...
    3. Config::General Failing test in ActivePerl
      When I install Config::General in ActivePerl it fails test 8. Test 8 is writing a hash to a file, and reloading it, and seeing if it is the same....
    4. Help find info for CPAN update config questions
      Hi, In the normal process of updating from a CPAN repository, a message came up saying there was a new version, to install Bundle::CPAN. Ok so...
    5. How to test a hash of arrays for defined/not defined
      "Steve" <ineverlookatthis@yahoo.com> wrote in message news:f0d57f86.0306300420.403e83e7@posting.google.com... I think you want: $chosen =...
  3. #2

    Default Re: Need info on how to test for roles defined in web.config.

    Never mind... I forgot to put in a Deny Users="*" after the Allow element.

    --
    -----------------------------------
    Ken Varn
    Senior Software Engineer
    Diebold Inc.

    EmailID = varnk
    Domain = Diebold.com
    -----------------------------------
    "Ken Varn" <nospam> wrote in message
    news:OYMaMRzeEHA.724@TK2MSFTNGP10.phx.gbl...
    > I am using forms based authentication. I would like to be able to
    determine
    > if a user has access to a specific web page through some automation method
    > without having to put specific code in the page to see if it is
    restricted.
    >
    > I was looking at the web.config parameters for location element and
    thought
    > this would be a good place to start. However, I cannot figure out how to
    > have the page test to see if the required roles for the location are valid
    > based on the identity object of the logged on user. Is there some
    standard
    > way of doing this?
    >
    > So far I have authenticated the user, and now want to limit the access of
    > certain pages based on the defined roles that the user has vs. what the
    page
    > allows.
    >
    > --
    > -----------------------------------
    > Ken Varn
    > Senior Software Engineer
    > Diebold Inc.
    >
    > EmailID = varnk
    > Domain = Diebold.com
    > -----------------------------------
    >
    >

    Ken Varn 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