New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the Community Exchange, where community members ask and answer questions about DNN. To get started, just start typing your question below and either select one of the suggested questions or ask a new question of your own.

SupportedModulesAttribute -- can I override/disable for a single method?

Return to previous page

  • 3/29/2019
  • 1085 Views
Tags:

Question:

Tim Nixon 6 years ago

I have a Web API controller for a module. I'm applying SupportedModules at the class level. However, there's one method that I need to have accessible to accept a POST call from outside of the DNN framework (it's how a remote web service posts hourly data updates to my service, it's the only way I can get the data from the other service).

Is there any way to shut off SupportedModules for just that one method? It requires a string parameter, I've tried passing an empty string, a null, and various wildcard characters.

I've also tried AllowAnonymous, which doesn't overcome it (and wouldn't be the greatest anyway, the remote service has an account it uses).

I'll probably just wind up making a second controller to catch this one thing, but I don't really want to. And likewise, I could apply SupportedModules to each method instead of the class, but with several levels of inherited methods that's also a pain.

SupportedModulesAttribute -- can I override/disable for a single method?

Tim Nixon
Tim Nixon 6 years ago
Add an Answer

Answers

Sign In to Participate
Or register to become a member