Hi Guys,

   I Need create a behaviour in authentication when i have something like
this:
{
   "_id": "org.couchdb.user:login",
   "name": "login",
   "roles": [ “db_codigo”, “distrib”
   ],
   "type": "user",
   "password": "senha em texto",
  * "enable": false,*
*   "aditional_parans": { ... }*
}

  I need check the ENABLE property to authentication.
  and when i can go through authentication, I will gain inside of  GET
/_session execution

{
    "ok": true,
    "userCtx": {
      "name": "username",
      "roles": ["role1","role2"],
      * "aditional_parans": { ... }*
    },
    "info": {
      "authentication_db":"_users",
      "authentication_handlers":["oauth","cookie","default"],
      "authenticated":"default"
    }
  }



thanks

-- 
Gabriel Mancini de Campos
Arquiteto de Soluções

+55 (11) 9449-1706
[email protected]
São Paulo - SP - Brasil

Reply via email to