DnnModuleAuthorize(SecurityAccessLevel.Anonymous) still will not authorize unless user is logged in
Return to previous page
DnnModuleAuthorize(SecurityAccessLevel.Anonymous) still will not authorize unless user is logged in
Add an Answer
Your question has been submitted and is awaiting moderation.
Thank you for reporting this content, moderators have been notified of your submission.
If I have a DnnAPIController class that uses [SupportedModules("ModuleName")] and a method that has the [DnnModuleAuthorize(AccessLevel = SecurityAccessLevel.Anonymous)] attribute, it works as I would expect for any user who is currently logged in. But not for an anonymous user. Even looking at the core code for the DnnModuleAuthorizeAttribute it appears that it should give access to the method if there is no Current User. Neverthless, the method returns a 401 when I am an anonymous user. Any thoughts? Is this a bug?