Recess Developer Forums: Authentication annotation - Recess Developer Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Authentication annotation

#1 User is offline   mophor Icon

  • Group: Members
  • Posts: 6
  • Joined: 05-September 09

Posted 22 September 2009 - 09:34 AM

Any plans to implement an authentication/authorization annotation?

If not, I hereby would like to share some thoughts

- authentication should be stateless (cookie based)
- authentication should be checked against a model
- this (user) model should require at least a username and password property (or properties annotated as username and password?)
- should authorization be based on user levels / user roles / other mechanisms?
- should authentication be on controller class level or controller method level? or both?

any thoughts?
0

#2 User is offline   beline Icon

  • Group: Members
  • Posts: 36
  • Joined: 02-September 09
  • LocationMaine, USA

Posted 22 September 2009 - 05:31 PM

I am working on one currently:
- the annotation will work on either the controller or method level
- will be permission based (with roles having permissions)
- will be stateless (cookie) with the username and hash as the identifiers
- authentication will be checked against the user model
- subsequent requests against a sessions model, with datetime opened, and last active (supporting timeout)
- roles can be managed
- users require an email and an activation hash
- actions (anything requiring clearance) can be logged, or just particular items of clearance

And a few other things. I can port it to Git at some point and make it a community project if people would like... Not within the next week or so though.
2

#3 User is offline   mophor Icon

  • Group: Members
  • Posts: 6
  • Joined: 05-September 09

Posted 23 September 2009 - 09:58 AM

That would be great, can you give a little insight in your progress?
0

#4 User is offline   beline Icon

  • Group: Members
  • Posts: 36
  • Joined: 02-September 09
  • LocationMaine, USA

Posted 28 September 2009 - 11:48 AM

Well, so I currently fail at getting Git to work on my Mac. I followed the tutorial on the Git website, but something went bunk and now I can't get anywhere.

Progress is slow, I've got a metric ton of school work atm. The basic implementation shouldn't take but a day. Right now I am developing what my needs are and doing basic unit testing of code, seeing if various things I want to do are possible... Grrrr. PM me.
1

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users