Re: Forms Authentication - Does Not Redirect

From: ElmoWatson (sputnik75043_at_yahoo.com)
Date: 07/30/03

  • Next message: Kathy: "Two authentication dialogs displayed for aspx pages"
    Date: Wed, 30 Jul 2003 14:34:06 -0500
    
    

    OK - but I need to just allow users, once they've been authenticated through
    my database query...
    I tried adding:
    <allow users="*"/>
    But that doesn't work either. Or I should say, that it works the same was as
    before - it still just refreshes the Login page

    I'm not sure what to put in place of names, after the asterisk, in this
    case......

    How can I procede here?

    "Steve Jansen" <stj3@nospam.columbia.edu> wrote in message
    news:%23r4jkpsVDHA.2224@TK2MSFTNGP09.phx.gbl...
    > Elmo,
    >
    > Perhaps you are missing the "allow" child node in your web.config file?
    >
    > <authorization>
    > <deny users="?" /> <!-- denies anonymous access -->
    > <allow users="*, YourRoleName, SomeUsername, Etc" /> <!--allows all
    > authenticated users -->
    > </authorization>
    >
    > According to MSDN: "The default authorization rule in the Machine.config
    > file is <allow users="*"/> so, by default, access is allowed unless
    > configured otherwise." Looks like you forgot to include an allow tag.
    >
    > -Steve
    >
    > "ElmoWatson" <sputnik75043@yahoo.com> wrote in message
    > news:OQBUeEsVDHA.2544@tk2msftngp13.phx.gbl...
    > > Here's my problem - - I'm trying to setup Forms Authentication on my
    > server.
    > > I can get the login page to show up every time, but, when it
    authenticates
    > > (I have a database lookup setup, which apparently DOES give back good
    > data),
    > > it just refreshes the login page, deleting the username & password.
    > >
    > > I know the database routine works. It returns a user's account
    properties,
    > > if verified and nothing, if not - - then, if it returns data from the
    > > database, I set 'blnValidUer' to True - otherwise, I set it to false.
    This
    > > is working as expected.
    > > Then, I do this in my code:
    > > if blnValidUser="True" then
    > > FormsAuthentication.RedirectFromLoginPage(txtUID.text, True)
    > > (I've also tried -----'response.Write (request.QueryString
    > > ("ReturnURL") & "<br>")
    > > else
    > > lblError.text="We're sorry, but the information you provided does
    not
    > > match our database. Please try again."
    > > End If
    > >
    > > Here's my Web.config Code:
    > > <authentication mode="Forms">
    > > <forms name="MySite"
    > > loginUrl="login.aspx"
    > > protection="All"
    > > timeout="480"
    > > path="/"
    > > />
    > > </authentication>
    > > <authorization>
    > > <deny users="?" />
    > > </authorization>
    > > I checked an earlier post - - my webserver is named normally, with
    nothing
    > > but letters (no underscores, etc) - - so that's not the problem
    > >
    > > Is there something I'm missing here? Why doesn't it redirect correctly?
    > >
    > >
    >
    >


  • Next message: Kathy: "Two authentication dialogs displayed for aspx pages"

    Relevant Pages

    • Re: Cant Encode Pic
      ... from login import login ... into the query string. ... This results in an SQL query that's not ... In order to pass values to the database safely, ...
      (comp.lang.python)
    • Re: Cannot view results of query
      ... > login to the database and view the results, ... This implies that the query runs, but only an hourglass is displayed. ... suspect instead that there is a specific error message when these users ... See http://www.QBuilt.com for all your database needs. ...
      (microsoft.public.access.security)
    • Re: Database Users
      ... Thanks Sue, ... But can you tell me how to write such a query, ... It the user has a login, ... >>Is there any way to prevent the same database user (or ...
      (microsoft.public.sqlserver.security)
    • Re: Using a query as a data source for a mail merge
      ... login as a user. ... When you open your database using Access, are you prompted for a ... Now I need to change this to a query. ... ' Set the mail merge data source as the Rat Rescue database. ...
      (microsoft.public.word.mailmerge.fields)
    • Re: Problems when using PASSWORD( $pass) in PHP/MySql
      ... When I am using plain-text password. ... It is no problem to login. ... Is it because of the way I query the database? ...
      (comp.lang.php)