Comments (9)
RtmUnauthenticatedError: Error Code 5 - Signature verification failed. I keep getting this error. How do I resolve this?
from tools.
umm i tried php version and it's working properly for me. which php version are you using?
bash-3.2$ php RtmTokenBuilderSample.php
Rtm Token: 006970CA35de60c44645bbae8a215061b33IADhrR1vsVX3JqBO951BdxlKa7OVqwT7MGhhp86rpgdXd10HL3sAAAAAEAAdcgAA9DfnXgEA6AOE9OVe
bash-3.2$
it you look into the code you will notice rtm token builder is placing userAccount in init function channelName field. so as long as you provide userAccount, it should not return null.
from tools.
maybe you can try running the sample code in sample folder? does that return you null as well?
from tools.
@RalphLincoln Did you use the same uid on the token generator and in the client ?
from tools.
Yes I did...... @alexanza
from tools.
@RalphLincoln sorry for late reply. could you pls help share the token you generated with me.
from tools.
It's been quite a long time now, I decided to move on without the token. But is the token needed in production. Could it break the application?
from tools.
Hi there,
Sample code works correctly, Following works for me:
Generate your $userAccount or $uid as:
$user = random_int(100000000, 999999999);
$user = (string)$user;
IMP: make sure you cast user id to string.
Pass this to RtmTokenBuilder::buildToken
Also, pass the same user id to AgoraEduSDK.launch config (userUuid)
from tools.
I found the issue, in the RtmTokoenBuilder.php class, update buildToken() method with the code snippet below
public static function buildToken($appID, $appCertificate,$channelName, $userAccount, $role, $privilegeExpireTs){
$token = AccessToken::init($appID, $appCertificate, $channelName,$userAccount);
$Privileges = AccessToken::Privileges;
$token->addPrivilege($Privileges["kRtmLogin"], $privilegeExpireTs);
return $token->build();
}
from tools.
Related Issues (20)
- Is it mandatory to login RTC while fetching Video/Audio in Android App? HOT 1
- Need help for token generation for user registration through rest api HOT 1
- RTC token not valid HOT 3
- issue with RTC token on the web HOT 10
- Which package should I use? when it cames to agora-access-token and agora-token. HOT 3
- [ruby] warning message of dynamic_key5.rb in Ruby 3.2 HOT 3
- feat: Support for ESM HOT 1
- agora-token: Buffer is not defined HOT 1
- java sdk maven**仓库没有更新 HOT 1
- Why c# code is using _uid as _channelName RTM Token generation c# HOT 2
- crypto.createHmac is not a function TypeError: crypto.createHmac is not a function HOT 1
- index.htmlpackage-ecosystem
- 能不能把不同语言的sdk分开,以便使用安装 HOT 3
- Problem in Building AccessToken2 || which library I have to use HOT 1
- Add API for synchronous token validation HOT 1
- python3和python2 下生成的Education Token是否可用? HOT 2
- AgoraRTCError CAN_NOT_GET_GATEWAY_SERVER with PHP 8.2 HOT 1
- go RtcTokenBuilder vs rtctokenbuilder2 HOT 1
- getStats() method is no longer supported HOT 2
- Error: error:0308010C:digital envelope routines::unsupported HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tools.