Package com.bitheads.braincloud.client
Class SmartSwitchCallback.SmartSwitchExternal
java.lang.Object
com.bitheads.braincloud.client.SmartSwitchCallback
com.bitheads.braincloud.client.SmartSwitchCallback.SmartSwitchExternal
- All Implemented Interfaces:
IServerCallback
- Enclosing class:
- SmartSwitchCallback
public class SmartSwitchCallback.SmartSwitchExternal extends SmartSwitchCallback
Smart Switch Authenticate will logout of the current profile, and switch to the new authentication type.
In event the current session was previously an anonymous account, the smart switch will delete that profile.
Use this function to keep a clean designflow from anonymous to signed profiles
Authenticate the user via cloud code (which in turn validates the supplied credentials against an external system).
This allows the developer to extend brainCloud authentication to support other backend authentication systems.
Service Name - Authenticate
Server Operation - Authenticate
-
Nested Class Summary
Nested classes/interfaces inherited from class com.bitheads.braincloud.client.SmartSwitchCallback
SmartSwitchCallback.SmartSwitchAdvanced, SmartSwitchCallback.SmartSwitchApple, SmartSwitchCallback.SmartSwitchEmail, SmartSwitchCallback.SmartSwitchExternal, SmartSwitchCallback.SmartSwitchFacebook, SmartSwitchCallback.SmartSwitchGoogle, SmartSwitchCallback.SmartSwitchGoogleOpenId, SmartSwitchCallback.SmartSwitchOculus, SmartSwitchCallback.SmartSwitchSteam, SmartSwitchCallback.SmartSwitchTwitter, SmartSwitchCallback.SmartSwitchUltra, SmartSwitchCallback.SmartSwitchUniversal -
Field Summary
Fields inherited from class com.bitheads.braincloud.client.SmartSwitchCallback
_callback, _wrapper -
Constructor Summary
Constructors Constructor Description SmartSwitchExternal(IBrainCloudWrapper in_wrapper, IServerCallback in_callback)SmartSwitchExternal(String in_userId, String in_token, String in_externalAuthName, boolean in_forceCreate, IBrainCloudWrapper in_wrapper, IServerCallback in_callback) -
Method Summary
Modifier and Type Method Description voidserverCallback(ServiceName in_serviceName, ServiceOperation serviceOperation, String jsonString)Methods inherited from class com.bitheads.braincloud.client.SmartSwitchCallback
clearIds, serverCallback, serverError
-
Constructor Details
-
SmartSwitchExternal
-
SmartSwitchExternal
public SmartSwitchExternal(String in_userId, String in_token, String in_externalAuthName, boolean in_forceCreate, IBrainCloudWrapper in_wrapper, IServerCallback in_callback)
-
-
Method Details
-
serverCallback
public void serverCallback(ServiceName in_serviceName, ServiceOperation serviceOperation, String jsonString)
-