[aerogear-dev] Android Auth branch and API

Matthias Wessendorf matzew at apache.org
Mon Oct 29 11:30:54 EDT 2012


* get_authToken and isAuthenticated => should they be really exposed
on the interface?
On iOS I am doing that in an _internal_ class (see [1])

* builder
is that close to what passos suggested for pipe/pipeline ?

-M


[1] https://github.com/aerogear/aerogear-ios/blob/master/AeroGear-iOS/AeroGear-iOS/security/AGAuthenticationModuleAdapter.h


On Fri, Oct 26, 2012 at 6:12 PM, Summers Pittman <supittma at redhat.com> wrote:
> My initial work is
> here:https://github.com/aerogear/aerogear-android/tree/auth
>
> Changes to existing classes/API:
>
> HttpProvider now returns a class called HeaderAndBodyMap.  This is a Map of
> the headers along with a byte array which was the body of the response.
>
> HttpProvider will throw a HttpException if it does not receive a 200 status
>
> HttpException wraps some information about the HTTP result.
>
>
> Description of current Auth Classes and Methods:
>
> Interfaces:
>
> Authenticator is a factory/lookup class a la Pipeline.
>
>
> AuthenticationModule is a module that manages a authenticated users
> credentials.  Provides enroll, login, logout, authToken, and
> isAuthenticated.
>
>
> Builder is an interface that can instantiate an instance of
> AuthenticationModule.
>
>
> Classes:
>
> DefaultAuthenticator implements Authenticator
>
>
> RestAuthenticationModule implements AuthenticationModule  only login is
> implemented.
>
>
>
> Todo:
>
> Implement the rest of the methods in RestAuthenticationModule
>
>
> Update Pipe implementations to use the AuthenticationModules
>
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf


More information about the aerogear-dev mailing list