Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Version status: 0.0.1-SNAPSHOT alpha, request for comments


APIs subject to change

With 600 million users and counting, it's the new Internet. Yes, I'm talking about Facebook. Whether you love it or hate it, these days you have to have a Facebook strategy.

Tynamo-federatedaccounts is an add-on to tapestry-security module and provides and API and components for doing federated authentication, i.e. authenticating (your application) users with a third-party, such as Facebook, Twitter or Google. The most well-known protocol for this is Oauth. The module provides an authenticating realm for a each specific third-party, required components and pages for a particular federated authentication scheme. The module is designed to as light-weight and non-evasive with minimal amount of configuration. For example, for enabling simple authentication with Facebook in your (Hibernate) application, you only need to provide the following configuration:

The User.class above is your own persistent type, or in the case of Hibernate/JPA, an @Entity. Any types you are contributing for FederatedAccountService, need to implement an interface FederatedAccount. FederatedAccount interface is shown below:

AuthenticationInfo federate(String realmName, Object remotePrincipal, AuthenticationToken authenticationToken, Object remoteAccount);


Note that for a snapshot version, you need to use the following repository:

  • No labels