2012-01-10

Identity and Authentification

Where it is going ??

Various organisation are working on the problem and its solutions. They produce specification draft, Use case studies, they try to attract members who are waiting for a solution to emerge.

Main players: OpenID & OAuth

OpenId is divided in two: OpenID 2.0 and OpenID Connect. It may be a real plus when linked with WebID, but is still experimental. The decentralized aspect is nice, but I am not sure if people are really concerned. Depending entirely on Facebook doesn't seem to bother anyone. So OAuth or even a proprietary Facebook protocol may seriously reduce OpenID success.

OpenID is supported by Google, Microsoft (LiveID = OpenID), and the US Governement (http://www.idmanagement.gov/)

OAuth 2.0 (IETF) looks like the most successful protocol. It can be used to login even if it was not its first goal.

OpenID and OAuth have a good adoption, which is critical for being relevant in the Identity space. 

The US "Federal Identity, Credential, and Access Management" (ICAM) validated OpenID 2.0 and SAML 2.0 as Trust Framework. They provide some good documents.

Experiments: WebID & BrowserID

WebID (W3C)

  • takes some idea from Microsoft InfoCard abandoned attempt (after the failed Passport attempt)
  • Avoid the hierarchical trust model used to authenticate servers
  • could moves toward a Web Of Trust, but does not even mention it.
  • Looks like it uses RDF to express Trust relationships ?

BrowserID https://browserid.org/ is a Mozilla Labs experiment with the simplified version of the "Verified Email Protocol". It is very simple and web oriented. It doesn't seems to be very successful so far.

Others ??

Usages

Identity in the Cloud (OASIS) is "just" a long and freightening list of use cases. For those who don't see the problem, it is a good read !

JSR 351 is a work in progress "to define API ... that facilitate the use of identity by applications ..." . It will bring standard Java API to well established standards: OAuth, OpenID ... and also annotations to avoid lookups.

2012-01-04

Scala, Typesafe, SBT, IntelliJ IDEA, Specs2, Play, Tests ...

Scala has a great ecosystem evolving from developers needs. 

Everything is not "IDE integrated", but I kind of hope that it will stay this way. I don't like menus that fill up the screen.

As a reminder, here is the path I followed:

  1. Go to Typesafe:
    1. Download Scala (the "Typesafe Stack").
    2. Play with the REPL (the console)
    3. Read the free e-book
  2. Download SBT, if not already done
    1. Create a project (you just have to follow the quick start)
    2. Configure the SBT project to use the sbt-idea plugin
    3. Run gen-idea to create the IDEA project files.
  3. Launch IntelliJ IDEA 
    1. Get the plugins: Scala (and optionnaly SBT, it will only display the SBT console in IntelliJ.)
    2. Open the created SBT project
  4. You are already TypeSafe, go to Test or Spec safety also
    1. There is no one true path like JUnit here, you will have to choose
    2. SBT integrates with 3 main players.
    3. I choose to go with Spec2. Simply configure SBT to use it.
  5. As for the Web frameworks, Lift and Play are kind of associated with Scala
    1. I choose Play 2.0. It is very early and lacking functinonality ! Depending on what you want to do, Play 1 has a more mature Scala Module.

So it is not obvious, but nicely incremental. The starting points are SBT and REPL. From here you choose a IDE and a testing framework.

The rest really depends on your specific needs.

2011-11-14

Chrome session management and synchronization

I searched for browser session management. That is, I would like to

  • Save my open tabs and be able to reopen it 2 month later.
  • Find my opened session at home in the state that I have leaved them at work

Here are some of my findings:

  • FreshStart 
    • 42,709 users
    • Looks good 
    • Synchronize with Chrome Bookmarks (=> no extra login required)
    • Used from november 2011 to october 2012
  • TabCloud
    • 35,042 users
    • Looks Good
    • Synchronize with external app: https://chrometabcloud.appspot.com/ (extra login required)
  • Swimming Session
    • 271 users
    • Synchronize with external app
  • 8cookies
    • also save your cookies (but they provide good security)
    • 41 users
  • Session Manager
    • 10,049 users
    • Looks good and simple
    • Doesn't sync !
  • Session Buddy
    • 53,532 users
    • Doesn't sync !
    • Used for 1 year

Point is that Chrome has a "Bookmark all tabs ..." menu when you right clic on the tabs !

This allow to manage & synchronize your sessions without any extention ...

(Note that I am currently not interested in cross-browser synchornization)

2011-10-27

Virtualization, a Vagrant 0.8 try

It has been a long time since I wanted to dive in virtualization. I always feared that my PC would not have enough RAM and end up only loosing time.

But I have been using VirtualBox and a bit of VMWare recently ... it looks good.

So next step to really get some benefits is to automate with Vagrant, Chef and Puppet ...

So far the setup is not as smoove as they say it would be ...

From here, this post turns into a rant :-)

First: Ruby. As far as I know, you have no choice here: Vagrant, Chef and Puppet are build on Ruby. I didn't even try to search for Python or whatelse based automations (but I would be glad to know Ruby alternatives).

So, Ruby, there is a Windows installer, click click, OK. Done. 

gem install vagrant

"Error: cannot access the Net". Ruby doesn't use the system proxy. You have to set an Environment variable: HTTP_PROXY=http://user:pwd@proxydemerde.com:1234/

gem install vagrant

"Error: you need the SDK". Vagrant uses particular modules that require local compilation (à la Gentoo). So you have to install Ruby SDK. (Why isn't it installed by default ?). Back to the Ruby web site. The SDK is a zip file, no installer this time. and be careful the zip doesn't contains its parent folder: you have to create a folder and uncompress the zip into this folder. Then run a script in the uncompressed folder that will find your Ruby installations and then run another script that will update theses installations so they are aware of the SDK presence.

gem install vagrant

"Error: cannot compile some ffi stuff". Vagrant uses some modules that uses some version of ffi.h and dependencies got messed up somehow. Google and find that you have to "gem install fii --version='1.0.9'" ... Dependency management ...

gem install vagrant

"Success". Nice. Next step install a machine. The examples feature "Ubuntu Lucid", I looked for one of the 3 more recents versions, but there are not a lot of choice here. So anyway it is a LongTermSupport, let not be too picky.

vagrant box add ludic64 http://files.vagrantup.com/lucid64.box

"Error: No space left on device ...." Well, the installer didn't ask for a workspace or project folder. It supposed there was plenty of space in "home". Back to Google, many solutions, some seems to not work for everyone. I edited the gem script to specify the "HOME" variable. Removed the ~/.gem and ~/.Vagrant folders.

vagrant box add ludic64 http://files.vagrantup.com/lucid64.box

"Error: No space left on device ...." Well, ".gem" is created in the floder I specified. But I have to set the variable in the vagrant script also ... Why is there no config file of global environement variable ?

vagrant box add ludic64 http://files.vagrantup.com/lucid64.box

"Success". I am close ! Just two commands left:

vagrant init ludic64

"Success" Just one more:

vagrant up

"Error: method missing in OLE ..." 

I tried with the "lucid32", same error. Some Google search, looks like the bug is being worked on.

Well Vagrant is in Beta after all. Sometimes, you are just out of luck. I hope it may help some other poor Windows / proxy users.

I will get back to Vagrant later. Next post may be about Chef or Puppet.

2011-08-31

One in six IT projects ends up ‘out of control’

http://www.ox.ac.uk/media/news_stories/2011/110822_1.html

A surprisingly high number of projects are 'ticking time bombs', according to researchers at the University of Oxford. They analysed 1,500 global projects that had revamped their information technology systems within the last 10 years. They discovered that one in six projects in the sample went over budget by an average of 200 per cent (in real terms) or over ran by an average of almost 70 per cent.

2011-06-29

Lower barrier to entry eases community engagement ...

... and I experienced at least 3 way JBoss made some good step in this direction:

  • Application Server 7 (JBoss AS7) is lightweigth and start in about 2 seconds on an 5 years old laptop
  • Wiki are open: you just have to login and you can edit. (and you don't need multiple accounts).
  • GitHub makes it easy to submit change request from your browser (my small contribution)

So things evolved from the time where Application Server where heavy beast which needed a strong and long commitment just to step in.

More progress is still possible by reducing the amount of information you have to digest and filter to get things done, but no doubt that some semantic web stuff will cover this need.

In the mean time, you can download JBoss AS7 CR1 (released today): http://www.jboss.org/jbossas/downloads.html

There are sample applications: 

Give it a shot

 

Festival de la Cooperative OASIS - 2026

 https://Cooperative-OASIS.org/ Abonnement la revue Passerelle Eco    Papier . Mais les annonces sont dispo:  Revue trimestrielle de l’ Ecov...