UseOAuth

View as Markdown

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.

This property should ONLY be set from the OnStateChange() method during State.SetDefaults.

Syntax

UseOAuth

Examples

1protected override void OnStateChange()
2{
3 if (State == State.SetDefaults)
4 {
5 UseOAuth = true;
6 }
7}