Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Latest commit

 

History

History
49 lines (28 loc) · 811 Bytes

LOGIN_ACTIVITY.md

File metadata and controls

49 lines (28 loc) · 811 Bytes

Login Web Activity

The login web activity is special: it is managed by the OWA framework, not by a custom mediator. Typically, a mediator, e.g. the sharing mediator, will act as the initiator of the login activity, mediated by the OWA framework. We make this an activity because, from the point of view of the app, it behaves exactly like an activity, with registered handlers.

getParameters

returns

{
  type: "dialog",
  url: "/login.html"
}

or

{
  type: "browserid"
}

or

{
  type: "oauth",

  // loginURL includes client_id
  loginURL: "https://...",

  // redirectURL is where we should expect to see the token in the fragment
  redirectURL: "https://...",
}

getCredentials

validateCredentials

clearCredentials