Categories > Newgrounds.io > rex_ngio_authentication

Introduction

Authentication provided by Newgrounds.io. It is also a base plugin for other rex_ngio_xxxx plugins.

Links


Categories > Newgrounds.io > rex_ngio_authenticationIntroductionLinksDependenceGet startedUsageApp id and AES keyLogoinLogging outDebugDebug panel

Dependence

None

Get started

Usage

App id and AES key

Logoin

CallbackYesNoLogin errorNoLogin CancelActionis successCondition:On loginCondition:On login errorExpression:UserNameExpression:UserIDExpression:UserIconURLCondition:On login cancelAction:Login

Sample capx

  1. Login

    • Action:Login
  2. Callback

    • Success : Condition:On login

      • Expression:UserName

      • Expression:UserID

      • Expression:UserIconURL

        • Load icon into image element
        • Icon can Not load into official sprite
    • Error : Condition:On login error

    • Cancel : Condition:On login cancel

Logging out

CallbackCondition:On logged outAction:Logging out
  1. Logging out

    • Action:Logging out
  2. Callback

    • Condition:On logged out

Debug


Debug panel

User name, UserID of current user will be shown at debug panel.