[Seaside] Re: Can't seem to get HTTP Auth working

Avi Bryant avi at beta4.com
Thu Jul 3 11:33:50 CEST 2003


On Thu, 3 Jul 2003, Stephen Pair wrote:

> Comanche 6.1 has some stuff you might find useful (like KomAuthDb) for
> this...the following (taken from the ModAuth documentation) is an
> example of a Comanche configuration that authenticates users:
>
>     | ma authdb |
>     authdb := KomAuthDb new.
>     authdb addUser: 'admin' withPassword: 'password'.
>     ma := ModuleAssembly core.
>     ma authenticate: authdb realm: 'Demo'.
>     ma addPlug:
>         [ :request |
>         HttpResponse fromString: 'Hello world!'].
>     (HttpService startOn: 8080 named: 'Example') plug: ma rootModule.

Yes, and note that you can wrap individual Seaside apps (as opposed to the
/seaside namespace as a whole) in a Comanche 6 module, with "WAKom
entryPoint: Foo path: '/foo'" - you can then plug that in to a
ModuleAssembly, wrap it in ModAuth, etc (but make sure it gets mounted at
/foo).








More information about the Seaside mailing list