import * as tnsOauth from './tns-oauth' ; import { AuthHelper } from './auth-helper' ; import * as TnsOAuth from './tns-oauth-interfaces' ; /**
 Contains LinkedIn connection credentials
*/ export class AuthHelperLinkedIn extends AuthHelper implements TnsOAuth . ITnsAuthHelper { constructor ( clientId , clientSecret , redirectUri , scope ) { super ( ) ; var scopeStr = scope . join ( '%20' ) ; this . credentials = { authority : 'https://www.linkedin.com' , tokenEndpointBase : 'https://www.linkedin.com' , authorizeEndpoint : '/oauth/v2/authorization' , tokenEndpoint : '/oauth/v2/accessToken' , clientId : clientId , clientSecret : clientSecret , redirectUri : redirectUri , scope : scopeStr } ; } public logout ( successPage ? ) { let cookieDomains = [ ".linkedin.com" ] ; return this . _logout ( successPage , cookieDomains ) ; } }