Hi,

Thanks for this module!

I probably won't get to think about this for a few days.
Authentication/Authorization is one of the things that may be looked
at during the sprint this weekend.

I had been planning that someone would take a good look at MultiAuth,
but there's always room for other ideas.

Kevin

On 10/3/05, Lethalman <[EMAIL PROTECTED]> wrote:
> I hope you'll like my authorization model and the fix for JSON in Opera.
>
> This is an example on howto use the authorization:
>
> import turbogears
>
> class Root:
>         authRootControl = turbogears.authorization.AuthMD5({'user':
> 'anonymous'})
>         authRoot =
> turbogears.authorization.Authentication(authRootControl.checkAuth,
> "Root")
>         _authorization = authRoot
>
>         authAdminControl = turbogears.authorization.AuthMD5({'admin': 'test'})
>         authAdmin =
> turbogears.authorization.Authentication(authAdminControl.checkAuth,
> "Admin")
>
>         @turbogears.expose()
>         def index(self):
>                 return "You need to be authorized by authRoot"
>
>         @turbogears.expose(auth=authAdmin)
>         def admin(self):
>                 return "authRoot doesn't check for this because
> there's authAdmin instead"
>
> --
> www.italianpug.org - Italian Python User Group Founder
>
>
>


--
Kevin Dangoor
Author of the Zesty News RSS newsreader

email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com

Reply via email to