A newbie question on SSO

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

  1. #1

    Default A newbie question on SSO

    Hi,

    I am trying to implement a SSO using FormsAuthentication for all my
    applications.
    When Authenticated, I am saving ApplicationID and RoleID in CSV form and
    store it on the cookie.

    Here is the sequence of events I try to implement

    When an user requests an web application for the first time, he/she is
    redirected to my SSO Web application
    which does authentication and retrieves list of applications and its
    respective roles and store on the ticket/cookie.

    When the user requests a new web application (ie., when he/she changes to
    the new url)
    I would like to pass the Ticket(cookie) which I have created before to a web
    service and check this user
    has some role to this application or not.

    For implementing this logic,
    I would like to know which global.asax event should I use? I see
    OnAuthenticationRequest event but don't know
    how to use it. Can you explain how that event works as I see little
    documentation about it in MSDN.

    I appreciate your help and comments,

    Holy
    Holysmoke Guest

  2. Similar Questions and Discussions

    1. Newbie Question: Biz Card Template Question
      Hi, I got the Pagemaker PlugIn - I am using one of the templates for Business Cards - the elements appear to be grouped (bound box all around when I...
    2. A newbie with a newbie question
      Good afternoon everyone, My Name is Dusty I am new to this forum and pretty new to Acrobat. I have Acrobat 9 running on an IMAC running 10.5.2 I...
    3. newbie question,,,
      I converted an AVI to FLV in the encoder. The resulsting file only opens a blank flash 8 player. I can't even get it to play within the flash app....
    4. Pen Tool Use Question. (Embarrassingly Newbie Question)
      I'm currently using Flash MX and whenever I choose the Pen Tool instead of the pen nib with the small "x" beside it that supposed to show up on...
    5. Newbie OO question
      In article <EbkRa.331382$fC.2436421@news.easynews.com>, "Ed W" <dodgynewsgroups@ewildgoose.demon.co.uk> wrote: perldoc perltoot it's all you...
  3. #2

    Default Re: A newbie question on SSO

    Hi Holy,

    Here is a post that will show you SSO with Forms Authentication.

    [url]http://weblogs.asp.net/hernandl/archive/2004/06/09/ssoformsauth.aspx[/url]

    If you want further insight about roles management with forms, check out
    these links as well.

    [url]http://weblogs.asp.net/hernandl/archive/2004/07/30/FormsAuthRolesRev.aspx[/url]
    [url]http://weblogs.asp.net/hernandl/archive/2004/08/05/FormsAuthRoles2.aspx[/url]

    Regards.
    --
    Hernan de Lahitte
    Lagash Systems S.A.
    [url]http://www.lagash.com[/url]
    [url]http://weblogs.asp.net/hernandl[/url]

    "Holysmoke" <Holysmoke@discussions.microsoft.com> escribió en el mensaje
    news:9F8213CB-A169-47EA-86AF-DD9E32A6FC97@microsoft.com...
    > Hi,
    >
    > I am trying to implement a SSO using FormsAuthentication for all my
    > applications.
    > When Authenticated, I am saving ApplicationID and RoleID in CSV form and
    > store it on the cookie.
    >
    > Here is the sequence of events I try to implement
    >
    > When an user requests an web application for the first time, he/she is
    > redirected to my SSO Web application
    > which does authentication and retrieves list of applications and its
    > respective roles and store on the ticket/cookie.
    >
    > When the user requests a new web application (ie., when he/she changes to
    > the new url)
    > I would like to pass the Ticket(cookie) which I have created before to a
    > web
    > service and check this user
    > has some role to this application or not.
    >
    > For implementing this logic,
    > I would like to know which global.asax event should I use? I see
    > OnAuthenticationRequest event but don't know
    > how to use it. Can you explain how that event works as I see little
    > documentation about it in MSDN.
    >
    > I appreciate your help and comments,
    >
    > Holy

    Hernan de Lahitte Guest

  4. #3

    Default Re: A newbie question on SSO

    Hi Hernan,

    Can you explain what how to handle in code for this scenario.

    A user asks for an application 1 by typing the url.
    First time he/she is redirected to SSO
    Signs in successful and access the application 1
    now he types url the new application 2 which he has no roles defined

    Now I decrypt the ticket and found no roles defined for this application.
    I want to redirect to a page saying you have no access.
    I don't want to config on web.config or from the code of every page.

    Is it possible to do something simple in AuthenticateRequest event?

    TIA,
    Holy

    Now i would like to say you have no access,

    How to

    "Hernan de Lahitte" wrote:
    > Hi Holy,
    >
    > Here is a post that will show you SSO with Forms Authentication.
    >
    > [url]http://weblogs.asp.net/hernandl/archive/2004/06/09/ssoformsauth.aspx[/url]
    >
    > If you want further insight about roles management with forms, check out
    > these links as well.
    >
    > [url]http://weblogs.asp.net/hernandl/archive/2004/07/30/FormsAuthRolesRev.aspx[/url]
    > [url]http://weblogs.asp.net/hernandl/archive/2004/08/05/FormsAuthRoles2.aspx[/url]
    >
    > Regards.
    > --
    > Hernan de Lahitte
    > Lagash Systems S.A.
    > [url]http://www.lagash.com[/url]
    > [url]http://weblogs.asp.net/hernandl[/url]
    >
    > "Holysmoke" <Holysmoke@discussions.microsoft.com> escribió en el mensaje
    > news:9F8213CB-A169-47EA-86AF-DD9E32A6FC97@microsoft.com...
    > > Hi,
    > >
    > > I am trying to implement a SSO using FormsAuthentication for all my
    > > applications.
    > > When Authenticated, I am saving ApplicationID and RoleID in CSV form and
    > > store it on the cookie.
    > >
    > > Here is the sequence of events I try to implement
    > >
    > > When an user requests an web application for the first time, he/she is
    > > redirected to my SSO Web application
    > > which does authentication and retrieves list of applications and its
    > > respective roles and store on the ticket/cookie.
    > >
    > > When the user requests a new web application (ie., when he/she changes to
    > > the new url)
    > > I would like to pass the Ticket(cookie) which I have created before to a
    > > web
    > > service and check this user
    > > has some role to this application or not.
    > >
    > > For implementing this logic,
    > > I would like to know which global.asax event should I use? I see
    > > OnAuthenticationRequest event but don't know
    > > how to use it. Can you explain how that event works as I see little
    > > documentation about it in MSDN.
    > >
    > > I appreciate your help and comments,
    > >
    > > Holy
    >
    >
    >
    Holysmoke 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