Creating new users who will be authenticated against AWS Cognito User Pool

39 views
Skip to first unread message

Yogeswari Narayasamy

unread,
Aug 24, 2020, 9:39:14 AM8/24/20
to Tinode General
I have the following config in the Tinode server's local.conf file (set by a senior colleague).
From the front-end, users are able to get authenticated to the chat app with their AWS Cognito user pool id and password.

1. Referring to "mhub" & "mhubconsummer" definitions below, will I be able to create a new user on the chat server with a grpc call?
2. Are "mhub" & "mhubconsummer" considered "anonymous" scheme? (we want the users to use their cognito user name and password to login to the chat app, thus Tinode doesn't have to define a separate password for the user)
// Authentication configuration.
   "auth_config": {
       "logical_names": [],

        // Basic (login + password) authentication.
       "basic": {
           // Add 'auth-name:username' to tags making user discoverable by username.
           "add_to_tags": true,
           "min_login_length": 4,
           "min_password_length": 6
       },
       "mhub": { // admin user pool
           "region": "ap-southeast-1",
           "user_pool_id": "ap-southeast-1_ir........",
           "app_client_id": "4vnm..........",
           "access_key_id": "AKIAW...........",
           "secret_access_key": "yIGUtK.............",
       },
       "mhubconsumer": { // customer user pool
           "region": "ap-southeast-1",
           "access_key_id": "AKIAWA..............",
           "secret_access_key": "yIGUtK................",
       },

        // Token authentication
       "token": {
           "expire_in": 1209600,

            "serial_num": 1,

            "key": "wfaY2RgF2S1......"
       }
   },



Gene Sokolov

unread,
Aug 24, 2020, 8:39:58 PM8/24/20
to tin...@googlegroups.com
If you want to use a custom authentication method you should create your own custom authenticator. Your authenticator will have the name you assigned in the config file. I.e. authenticator 'mhub' will have the name 'mhub'.

--
You received this message because you are subscribed to the Google Groups "Tinode General" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tinode+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tinode/2961c566-016f-457a-8a59-20ad71f204bco%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages