Project Wonder 5.0

er.rest.entityDelegates
Interface IERXRestAuthenticationDelegate

All Known Implementing Classes:
ERXUnsafeRestAuthenticationDelegate

public interface IERXRestAuthenticationDelegate

IERXRestAuthenticationDelegate provides a hook for you to authenticate users for the purposes of a restful request. ERXRestContext provides access to the WOContext if you want to create a session and access users through the session. Alternatively, you can work without a session by using the ERXRestContext as a dictionary and simply attaching the current user to the context.

Author:
mschrag

Method Summary
 boolean authenticate(ERXRestContext context)
          Attempt to authenticate the user with the given context.
 

Method Detail

authenticate

boolean authenticate(ERXRestContext context)
Attempt to authenticate the user with the given context. The context provides access to things like the WOContext, which you can traverse to get the WORequest and access form variables if need be.

Parameters:
context - the rest context
Returns:
whether or not authentication was successful

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.