tinode / chat

Instant messaging platform. Backend in Go. Clients: Swift iOS, Java Android, JS webapp, scriptable command line; chatbots
GNU General Public License v3.0
12.06k stars 1.88k forks source link

External jwt token authenticator #894

Closed Mallbrusss closed 11 months ago

Mallbrusss commented 11 months ago

We use tinode as a part of social network. And already use external service as authority source for our jwt tokents.

The problem is to support jwt tokens provided from our authority source on tinode.

The only option I found is to develop authentificator like the next, but without token generation, with validation functionality only.

https://github.com/tinode/chat/blob/master/server/auth/token/auth_token.go#L199

Questions:

  1. Are the mo proper way to solve this case ?
  2. Can authentificator be a part of plugin ?

I'm very impressed by work you done. Thx.

or-else commented 11 months ago

You can use REST auth: https://github.com/tinode/chat/tree/master/server/auth/rest

If you believe it does not work for your use case, please explain why.

or-else commented 11 months ago

No update in while. I assume the issue is resolved. Closing.