Re: Add extra parameter to Login/Membership - ASP 2.0

From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 10/25/05


Date: Mon, 24 Oct 2005 23:34:02 -0700

Hello David,

smells like custom provider...

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

> Thanks for the response. I think the Application name is set
> automatically by settings in the web config? I would like to pass the
> value from my login.aspx form to be used as part of the authentication
> process. Kinda like saying to the server please check user "jsmith"
> with password "xxxx" from Site (from drop down) "1".
>
> Thanks again,
>
> Dave
>
> "Dominick Baier [DevelopMentor]"
> <dbaier@pleasepleasenospamdevelop.com> wrote in message
> news:4256546011e8cd8c7a72e63bf10ca@news.microsoft.com...
>
>> Hello David,
>>
>> can you "misuse" the ApplicationName for that??
>>
>> otherwise i guess you need a custom provider.
>> ---------------------------------------
>> Dominick Baier - DevelopMentor
>> http://www.leastprivilege.com
>>> I hope can explain this properly. I have a time keeping site that
>>> host multiple companies data in a single database. I would like the
>>> logins to be unique for each company but not across the entire site
>>> (i.e. I could have two jsmith logins as long as they are with
>>> seperate companies).
>>>
>>> I would like to add a drop down box to the login that allow the user
>>> to select the company that they are with. By adding a "site" column
>>> to the users table I would be able to partition the users so that
>>> they would be authenticated only against the id that has a "site"
>>> that matches theirs.
>>>
>>> Does this require creating a custom membership provider? I have
>>> written my own authentication routines in the past and can do so for
>>> this projects but I would really like to leverage the existing
>>> membership/role capablility of ASP2. I'm not sure that I have the
>>> skills needed to write a custom membership provider. I just want to
>>> make sure that I wasn't missing anything.
>>>
>>> Thanks
>>> Dave



Relevant Pages

  • RE: WebPart Personalization Blob Deserialize Error
    ... you're writing your custom code to load binary data ... personalization provider or customize the existing one will you need to ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Problem implimenting a Custom Active Directory Role Provider
    ... worker process in debug menu (use IISAPP from prompt to sort out what ... AD and users in custom database, ... administration so that you can add custom provider member/roles to the ... accessible through Forms Authentication and cannot use Windows Authentication ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: using custom database for membership and rolls ?
    ... if you have a custom database...and you've written a custom membership ... provider, you don't need any setup tool. ... This is how to use Access (Jet database) for membership. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Sharing Users, but not roles between Applications
    ... -- the provider name and type would be replaced with your custom provider ... UnBlog: ... public class EconcordiaSqlRoleProvider: SqlRoleProvider ... I want to use that connection for my custom methods ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Extending MembershipUser
    ... So is there any particular custom types used in your membership provider ... make them in a separate class library project (include ... | succeeds (i.e., instances of my custom MembershipUser class are created, ...
    (microsoft.public.dotnet.framework.aspnet)