Forum


HomeHomePremiumPremiumDevelopmentDevelopmentDNN Spa module in DNN 8 CTP 7DNN Spa module in DNN 8 CTP 7
Previous
 
Next
New Post
11/19/2015 11:32 AM
 
Found it...  Lot of little things like having the controller point to the Action rather then the Method.   So, know the code looks like it is all linked up and ready to go however, I am getting a security issue involving the DNNAPI.  It is requesting a user name and password however, it cannot authenticate so it gives me an unauthorized error and denies the request.
 
New Post
11/20/2015 5:22 AM
 

In your api are you setting your SecurityAccessLevel correctly?

In my projects I create a base dnn api controller where I create a constant access level such as:

Then on my method:

'View' allows access if the caller has permission to view the model. You can also do:

Anonymous will allow anyone access. Hope that helps.

 
New Post
11/20/2015 10:45 AM
 

Thanks for the info... I think it worked.

 

Now for the next round.  

I am no longer getting any errors however, something very strange is happening.  I am using an ng-repeat function in the view.html inside a table row definition and once DNN renders the module, the entire table row section with the ng-repeat block of code is commented out.

Is this a dnn 8 thing?

 

Dan


 
New Post
11/23/2015 1:40 PM
 

Ok, I re-worked the SPA Module and I am getting still getting a DNNAPI unauthorized error and a prompted for a user name and Password that never authenticates to the site.

Scott - I was hoping the the dnnuclear_dnn,js bootstrap you created for your angularmodel module handle the security but I am not sure since you were using the View,ascx still to lauch the module.  

Since I am using pure html (i.e.  view.html) to launch my module do I need to include addition security items in the code or should the dnnuclear-dnn.js handle the security?

Greatly appreciate any help.

Dan

 

 
Previous
 
Next
HomeHomePremiumPremiumDevelopmentDevelopmentDNN Spa module in DNN 8 CTP 7DNN Spa module in DNN 8 CTP 7



Try FREE
30 days money back guaranteed