import * as tnsOauth from './tns-oauth' ; import { AuthHelper } from './auth-helper' ; import * as TnsOAuth from './tns-oauth-interfaces' ; export class AuthHelperUaa extends AuthHelper implements TnsOAuth . ITnsAuthHelper { private _cookieDomains : string [ ] ; constructor ( authority , redirectUri , clientId , clientSecret , scope , cookieDomains , basicAuthHeader ) { super ( ) ; var scopeStr = scope . join ( '%20' ) ; let uaaCreds = { authority : authority , authorizeEndpoint : '/oauth/authorize' , tokenEndpoint : '/oauth/token' , clientId : clientId , clientSecret : clientSecret , redirectUri : redirectUri , scope : scopeStr , basicAuthHeader : basicAuthHeader } ; this . credentials = uaaCreds ; this . _cookieDomains = cookieDomains ; } public logout ( successPage ? ) { let cookieDomains = this . _cookieDomains ; return this . _logout ( successPage , cookieDomains ) ; } }