BrewCenter / BrewCenterAPI

An open source api for managing homebrewing related data.
32 stars 11 forks source link

[30] - Custom exception handler for unauthenticated requests, views l… #63

Closed TheArtOfPour closed 7 years ago

TheArtOfPour commented 7 years ago

…imit response data when unauthenticated, settings.py toggle and configuration, .gitignore for jetbrains ide, requirements.txt swagger addition to prevent django rest framework exception

MichaelWashburnJr commented 7 years ago

I merged master into this locally and I don't think it's working as expected. The authentication classes are still present on all the viewsets so everything automatically gets blocked. Maybe there is a way to extend the ViewSet class and allow a different function to be called when unauthenticated?

TheArtOfPour commented 7 years ago

@MichaelWashburnJr Just confirming, did you update your settings.py with the changes in example.settings.py? That is what defines the custom handler and sets the configs to enable it.

MichaelWashburnJr commented 7 years ago

Yep, that was it. Thanks, this is awesome!