couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriel Mancini <gabriel.manc...@gmail.com>
Subject _session question: enable/disable behaviour of users and aditional parameters
Date Thu, 02 Aug 2012 18:33:39 GMT
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
gabriel.mancini@gmail.com
São Paulo - SP - Brasil

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message