我不知道,如何授权我的应用程序打开这个钥匙锁。
我有这段代码,但我不知道如何插入字符串:userManager.logInAsync(STRING, CancellationTokens.None),您知道我如何获得用户Id或登录令牌吗?
如果你需要什么密码就告诉我。谢谢你的帮忙!
发布于 2022-10-04 20:08:40
要登录到Tapkey Mobile SDK,您需要设置和配置一个Identity Provider,该Identity Provider签署一个JWK Token,然后与Tapkey Access Token进行交换。
在这里可以找到更详细的信息:https://developers.tapkey.io/mobile/authentication/
有关使用Identity Provider的详细信息可以在这里找到:https://developers.tapkey.io/api/authentication/identity_providers/
如何创建和注册Identity Provider和Token Exchange Client,可以在这里找到:https://developers.tapkey.io/api/authentication/registration/#identity-provider-registration
1.通过可信服务签名JWT令牌
通过受信任的服务注册登录用户的JWT令牌:https://developers.tapkey.io/api/authentication/identity_providers/
2.将JWT令牌与Tapkey访问令牌交换
将签名的JWT令牌与设备上的Tapkey访问令牌交换:https://developers.tapkey.io/api/authentication/token_exchange/
在Tapkey中没有具体的实现,这必须手动完成。
3.使用Tapkey访问令牌登录
使用Tapkey访问令牌登录Tapkey Mobile
userManager.logInAsync([TAPKEY_ACCESS_TOKEN], CancellationTokens.None);
https://stackoverflow.com/questions/73952620
复制相似问题