Better integration of JWT for custom auth in SG as Proxy - Tutorial + Idea

81 views
Skip to first unread message

Thiago Alencar

unread,
Aug 14, 2015, 12:31:58 AM8/14/15
to Couchbase Mobile
Hey there,

I noticed quite a few people having trouble setting up the initial authentication with custom auth, so I thought: why not expand on the idea of the extra handler/hook in sync_gateway, as described here: 


But provide integrated support for JWT out of the box? There are JTW libraries for go, so I believe code changes would be minimal. I still have to learn go though. Maybe some more experienced developers could take a look at this?

I've explained the situation in more detail here (text is extensive > skip to implementation number 3 - Own Authenticated Server + JWT): 


Either if its implemented or not, in that article I try to clarify such questions (sessions, tokens, etc). Hope it helps somebody, feedback is welcome.

If it does get implemented, I think its a double-win: users get the authentication issue solved for both replication AND standard REST calls, also in a simpler way.


BR/Thiago

Traun Leyden

unread,
Aug 14, 2015, 1:16:36 PM8/14/15
to mobile-c...@googlegroups.com
Thanks.  This looks great!

@Jamlitz you should definitely check this out.

--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/c393df80-2560-4fb9-a42f-6c81aa47613d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages