简体   繁体   中英

IBM Watson Unity SDK IAM Authentication

In the IBM Watson Unity SDK, using the IamAuthenticator to initialize a Watson Service with your API Key generates a token that is then used by the service to make IBM Watson API requests. Do these tokens expire?

I know a new token must be requested every hour using the IBM Watson Node SDK in combination with a browser app, but does the IamAuthenticator not take care of refreshing the tokens for you in the Unity SDK? If not, how would I go about refreshing the token every hour, do I just create a new Authenticator object every time and thus a new service object? Or is there a utility method for this?

The documentation for this SDK is not very good, would appreciate if someone pointed me in the right direction for this.

please check out the IAM section in Readme . You can use IAM API key if you want SDK to manage the lifecycle of the token, please see the following docs if you wanna learn more about IAM.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM