Based on simple_auth for create the gem.