[SOLVED] Send Extension PubSub Message with JWT Bearer

I tried base64 decode the client_secret before use. No luck.

//byte[] keyBytes = Encoding.UTF8.GetBytes(VALUE_CLIENT_SECRET);

            string str = VALUE_CLIENT_SECRET;
            int mod4 = str.Length % 4;
            if (mod4 > 0)
            {
                str += new string('=', 4 - mod4);
            }
            byte[] keyBytes = Convert.FromBase64String(str);