--
You received this message because you are subscribed to the Google Groups "gcd-tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gcd-tech+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/gcd-tech/c584823b-d9f8-457a-845a-db07a445d5c2%40metron.cloud.
drf docs say to only use basic auth for testing, so I am not sure if we go this path.
Yeah... you need to make sure to use some basic security measures (https-only, correct user/model permissions, sensible request methods offered, etc), and be aware of any potential attack vectors. Depending on your security needs, token access might be a better option, tho it also has some potential security deficiencies.
Most of the other comic sites use one of the following:
Each has it's pro and cons, but in general, the more secure the method the more work will be required to implement it.
The big question is how the consumers of your API plan to use it.
If they plan to use it for an AJAX/JS/Browser project, it makes
sense to only provide Session-based authentication, but if they
plan to use it with a program/script you would want to use one of
the other authentication methods.