UseOAuth

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Share Service >

UseOAuth

Previous page Return to chapter overview Next page

Definition

If this property is set to true, a Connect button will appear in the dialogue for configuring the adapter that will call OnAuthorizeAccount() when the user clicks it.

 

Property Value

A bool value determining if the OnAuthorizeAccount() method should be called in order to authorize the account to the social service.

 

Warning:  This property should ONLY bet set from the OnStateChange() method during State.SetDefaults

 

Syntax

UseOAuth

 

 

Examples

ns

protected override void OnStateChange()
{        
  if (State == State.SetDefaults)
  {
     UseOAuth   = true;
  }
}