Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(@Inject(DOCUMENT) private document: any,
@Inject(OKTA_CONFIG) private auth: OktaConfig,
private http: HttpClient,
private router: Router) {
// Assert Configuration
assertIssuer(auth.issuer, auth.testing);
assertClientId(auth.clientId);
assertRedirectUri(auth.redirectUri);
this.observers = [];
this.oktaAuth = new OktaAuth(buildConfigObject(auth));
this.oktaAuth.userAgent = `${packageInfo.name}/${packageInfo.version} ${this.oktaAuth.userAgent}`;
/**
* Scrub scopes to ensure 'openid' is included
*/
auth.scope = this.scrubScopes(auth.scope);
/**
* Cache the auth config.
*/
constructor(@Inject(DOCUMENT) private document: any,
@Inject(OKTA_CONFIG) private auth: OktaConfig,
private http: HttpClient,
private router: Router) {
// Assert Configuration
assertIssuer(auth.issuer, auth.testing);
assertClientId(auth.clientId);
assertRedirectUri(auth.redirectUri);
this.observers = [];
this.oktaAuth = new OktaAuth(buildConfigObject(auth));
this.oktaAuth.userAgent = `${packageInfo.name}/${packageInfo.version} ${this.oktaAuth.userAgent}`;
/**
* Scrub scopes to ensure 'openid' is included
*/
auth.scope = this.scrubScopes(auth.scope);
/**
* Cache the auth config.
constructor(@Inject(DOCUMENT) private document: any,
@Inject(OKTA_CONFIG) private auth: OktaConfig,
private http: HttpClient,
private router: Router) {
// Assert Configuration
assertIssuer(auth.issuer, auth.testing);
assertClientId(auth.clientId);
assertRedirectUri(auth.redirectUri);
this.observers = [];
this.oktaAuth = new OktaAuth(buildConfigObject(auth));
this.oktaAuth.userAgent = `${packageInfo.name}/${packageInfo.version} ${this.oktaAuth.userAgent}`;
/**
* Scrub scopes to ensure 'openid' is included
*/
auth.scope = this.scrubScopes(auth.scope);
/**
* Cache the auth config.
*/
this.config = auth;
constructor(@Inject(DOCUMENT) private document: any,
@Inject(OKTA_CONFIG) private auth: OktaConfig,
private http: HttpClient,
private router: Router) {
// Assert Configuration
assertIssuer(auth.issuer, auth.testing);
assertClientId(auth.clientId);
assertRedirectUri(auth.redirectUri);
this.observers = [];
this.oktaAuth = new OktaAuth(buildConfigObject(auth));
this.oktaAuth.userAgent = `${packageInfo.name}/${packageInfo.version} ${this.oktaAuth.userAgent}`;
/**
* Scrub scopes to ensure 'openid' is included
*/
auth.scope = this.scrubScopes(auth.scope);
/**
* Cache the auth config.
*/
this.config = auth;
this.$authenticationState = new Observable((observer: Observer) => {this.observers.push(observer); });
}