英語 での A pseudo user の使用例とその 日本語 への翻訳
{-}
-
Colloquial
-
Ecclesiastic
-
Computer
-
Programming
Using a pseudo user.
Here is an example of creating a pseudo user.
You create a pseudo user with Basic Authentication.
The following sample code shows an example of creating a pseudo user.
Creating a pseudo user.
See Thing-IF SDKDevelopment Guides to learn how to create a pseudo user.
Creating a pseudo user Here is an example of creating a pseudo user.
Execute the registerAsPseudoUser method to create and register a pseudo user.
A pseudo user can be migrated to a normal user by setting credentials.
IsPseudoUser() method to check if the current user is a pseudo user.
When a pseudo user is created, Kii Cloud returns the access token for this user. .
The sample code in the Initializing and Onboarding topic uses a pseudo user as a thing owner.
Creating a pseudo user The following sample code shows an example of creating a pseudo user. .
Identify a user by creating a pseudo user and retaining its access token on the client.
A pseudo user is a feature to use a Kii Clouduser without a username and password.
Implementation tips User type of theowner We have presented a method to add a pseudo user as the thing owner. Alternatively, you can use the following approaches.
Once a pseudo user is created, the user can leverage Kii Cloud with the access token just like a normal user. .
Launch the RegistrationIntentService when the user login succeeds(or a pseudo user is registered, or the login with the access token succeeds) or at any timing after the event.
If you use a pseudo user(Android, iOS, JavaScript, REST), you can get the access token without providing any password.
We have presented a method to add a pseudo user as the thing owner. Alternatively, you can use the following approaches.
A pseudo user can become a normal user by registering his identifier(i.e. username, email address and/or phone number) and password.
This is because a pseudo user has no associated username and password and thus he cannot login with them so as to get his access token.
When the API to create a pseudo user is called, Kii Cloud creates a user account and issues an access token for the user account.
If the owner is a pseudo user The command ID is notified only to the device on which the command is executed because a pseudo user is unique to each device.
With the above steps, a pseudo user becomes a normal user. The user will be able to authenticate and get the access token with the username and password thereafter.
The same effect is achieved when a pseudo user is created. For a pseudo user, it is essential to keep the access token in the device's local storage until the user no longer needs it.
When a pseudo user is created,an access token is generated. A pseudo user is identified with an access token that is retained on the mobile app, instead of a pair of usernamne and password.