Wednesday, February 13, 2019

adal.js errors!

Error parsing a meta element's content: ';' is not a valid key-value pair separator. Please use ',' instead.

This means you are trying to redirect to a partial URL and not a complete URL. That won't work. Duh.

 
 

Cannot set property 'REQUEST_TYPE' of undefined

This means up are not setting the adal.AuthenticationContext in constructor of your service. It has to happen in the constructor. You cannot just call a method to do this work. You will do so like so:

 
 

this.context = new MyModel(this.settings);

 
 

...while MyModel looks like so:

import * as AuthenticationContext from 'adal-angular';
import * as adal from 'adal-angular';
export const MyModel: adal.AuthenticationContextStatic = AuthenticationContext;

No comments:

Post a Comment