Home Reference Source
import AuthModalTemplate from '~/template/login/AuthModalTemplate.js'
public class | source

AuthModalTemplate

Extends:

js/template/template/ModalViewTemplate.js~ModalViewTemplate → AuthModalTemplate

Authorization Modal dialog. This uses #ammd-auth as the modal template.

Constructor Summary

Public Constructor
public

constructor(modalOptions: Object, options: Object)

Member Summary

Public Members
public

Authorization config

public

Provider object

public

Method Summary

Public Methods
public

async didInitialLoad()

public

observeLogin(): Observable<Object>

Called when complete.

Public Constructors

public constructor(modalOptions: Object, options: Object) source

Params:

NameTypeAttributeDescription
modalOptions Object
modalOptions.title string
  • nullable: true

A title of the modal.

modalOptions.subtitle string
  • nullable: true

Some description explaining why opened

options Object
  • optional
  • default: {}

custom oauth opts for Auth.oauthEndpointForSite

Public Members

public config source

Authorization config

public providers: Object source

Provider object

public subtitle source

Public Methods

public async didInitialLoad() source

public observeLogin(): Observable<Object> source

Called when complete. MUST have appropriate params. Do note that if client flow is NOT enabled then the page will refresh automatically unless auth is complete.

Return:

Observable<Object>