Skip to content
This repository has been archived by the owner on Aug 4, 2019. It is now read-only.

attempt to detect apiHost and session, show host+login input window if needed #7

Open
themightychris opened this issue May 22, 2015 · 0 comments
Assignees
Labels
A-sencha-app Area: General app infrastructure, viewport, and navigation C-feature Category: New functionality or behavior E-hard Effort: Very difficult; do not attempt without significant relevant experience and motivation. L-sencha Language: Sencha/Ext JS (JavaScript)

Comments

@themightychris
Copy link
Contributor

Create an optional singleton or controller for the emergence-apikit package that provides an optional stock UI on top of the existing apikit classes.

Any existing use of Ext.Msg in the API connection classes should be removed in favor of events, such that none of the data classes have any dependency on framework components outside of the data package.

The controller could provide error/retry UI as well as a method applications could use called requireAuthentication that takes a callback that will be run after an API host has been connected to and authenticated against.

apiHost would be determined from, in priority order:

  1. page query parameter
  2. set to null if window.SiteEnvironment is defined
  3. included as field is login prompt to user

session would be loaded from, in priority order:

  1. window.SiteEnvironment if apiHost is null
  2. API.getSessionData(...)

SlateAdmin can then wrap its viewport initialization and/or defer its routing until requireAuthentication executes its callback

@themightychris themightychris self-assigned this May 22, 2015
@themightychris themightychris added A-sencha-app Area: General app infrastructure, viewport, and navigation C-feature Category: New functionality or behavior E-hard Effort: Very difficult; do not attempt without significant relevant experience and motivation. L-sencha Language: Sencha/Ext JS (JavaScript) labels Sep 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-sencha-app Area: General app infrastructure, viewport, and navigation C-feature Category: New functionality or behavior E-hard Effort: Very difficult; do not attempt without significant relevant experience and motivation. L-sencha Language: Sencha/Ext JS (JavaScript)
Projects
None yet
Development

No branches or pull requests

1 participant