I'm just thinking a way to be productive on debug phase.
and i guess that the ie approach is not the best way...
what about change httpRequest "domain" or "context" every time?
randomly generated?
what do you think? it could be really useful to have a easy way to
develop....and test....
On 22 Feb, 16:57, Andrew Arnott <
andrewarn...@gmail.com> wrote:
> I just checked, and I see no way to control cookies on the WinForms
> WebBrowser control. Maybe it's as simple as launching IE and logging out
> of your authorization server on the full browser?
>
>
>
>
>
> On Wednesday, February 22, 2012, Andrew Arnott wrote:
> > There are two residual states here:
>
> > 1. The cookie in your WinForms app's hosted browser that is allowing
> > your scenario to skip the login form on your authorization server.
> > 2. The authorization server remembering the authorization the user had
> > previously approved.
>
> > Obviously for real world scenarios both aspects above are desirable for
> > user convenience. But if you want these steps to be repeatable, you need
> > your authorization server to clear its authorizations table (where it
> > tracks previous authorizations) before your test, and you could also rig
> > your auth server to force the user to log in even if cookies exist that
> > show the user has already logged in. As an alternative to the second step,
> > you could theoretically cause your winforms app's hosted browser to clear
> > its cookies, which would require the user to log into the auth server each
> > time, however from memory I'm not sure that's possible when using the
> > ClientAuthorizationView control. I can check into that if you'd like.
> > --
> > Andrew Arnott
> > "I [may] not agree with what you have to say, but I'll defend to the death
> > your right to say it." - S. G. Tallentyre
>
> > On Wed, Feb 22, 2012 at 4:01 AM, meriturva <
meritu...@email.it<javascript:_e({}, 'cvml', '
meritu...@email.it');>
> > > wrote:
>
> >> Hi to all,
> >> i'm using ClientAuthorizationView class on windows form project just
> >> to test our OAuth 2 server.
> >> i'm just asking a way to force the login every time i run my program.
> >> Actually i authenticated one time a test user and now i just see the
> >> component show a white form then it close itself and i receive a valid
> >> tocken from dialog class.
>
> >> Now we have to test program with different users....how to force the
> >> login phase evey time?
> >> Thanks.
> >> Meriturva
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "DotNetOpenAuth" group.
> >> To post to this group, send email to
dotnet...@googlegroups.com<javascript:_e({}, 'cvml', '
dotnet...@googlegroups.com');>
> >> .
> >> To unsubscribe from this group, send email to
> >>
dotnetopenid...@googlegroups.com <javascript:_e({}, 'cvml',
> >> '
dotnetopenid%2Bunsu...@googlegroups.com');>.