Gonzalez, Danielle und Rath, Michael und Mirakhorli, Mehdi (2020) Did You Remember To Test Your Tokens? In: 17th IEEE/ACM International Conference on Mining Software Repositories, MSR 2020, Seiten 232-242. ACM. 2020 IEEE/ACM 17th International Conference on Mining Software Repositories (MSR), 2020-06-29 - 2020-06-30, Seoul, Korea. doi: 10.1145/3379597.3387471. ISBN 978-1-4503-7517-7.
PDF
970kB |
Offizielle URL: https://dl.acm.org/doi/10.1145/3379597.3387471
Kurzfassung
Authentication is a critical security feature for confirming the identity of a system's users, typically implemented with help from frameworks like Spring Security. It is a complex feature which should be robustly tested at all stages of development. Unit testing is an effective technique for fine-grained verification of feature behaviors that is not widely-used to test authentication. Part of the problem is that resources to help developers unit test security features are limited. Most security testing guides recommend test cases in a "black box" or penetration testing perspective. These resources are not easily applicable to developers writing new unit tests, or who want a security-focused perspective on coverage. In this paper, we address these issues by applying a grounded theory-based approach to identify common (unit) test cases for token authentication through analysis of 481 JUnit tests exercising Spring Security-based authentication implementations from 53 open source Java projects. The outcome of this study is a developer-friendly unit testing guide organized as a catalog of 53 test cases for token authentication, representing unique combinations of 17 scenarios, 40 conditions, and 30 expected outcomes learned from the data set in our analysis. We supplement the test guide with common test smells to avoid. To verify the accuracy and usefulness of our testing guide, we sought feedback from selected developers, some of whom authored unit tests in our dataset.
elib-URL des Eintrags: | https://elib.dlr.de/136282/ | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Dokumentart: | Konferenzbeitrag (Vortrag) | ||||||||||||||||
Titel: | Did You Remember To Test Your Tokens? | ||||||||||||||||
Autoren: |
| ||||||||||||||||
Datum: | 2020 | ||||||||||||||||
Erschienen in: | 17th IEEE/ACM International Conference on Mining Software Repositories, MSR 2020 | ||||||||||||||||
Referierte Publikation: | Ja | ||||||||||||||||
Open Access: | Ja | ||||||||||||||||
Gold Open Access: | Nein | ||||||||||||||||
In SCOPUS: | Ja | ||||||||||||||||
In ISI Web of Science: | Nein | ||||||||||||||||
DOI: | 10.1145/3379597.3387471 | ||||||||||||||||
Seitenbereich: | Seiten 232-242 | ||||||||||||||||
Verlag: | ACM | ||||||||||||||||
ISBN: | 978-1-4503-7517-7 | ||||||||||||||||
Status: | veröffentlicht | ||||||||||||||||
Stichwörter: | Repository Mining, Unit Test, Java, Authentication, Security Test | ||||||||||||||||
Veranstaltungstitel: | 2020 IEEE/ACM 17th International Conference on Mining Software Repositories (MSR) | ||||||||||||||||
Veranstaltungsort: | Seoul, Korea | ||||||||||||||||
Veranstaltungsart: | internationale Konferenz | ||||||||||||||||
Veranstaltungsbeginn: | 29 Juni 2020 | ||||||||||||||||
Veranstaltungsende: | 30 Juni 2020 | ||||||||||||||||
HGF - Forschungsbereich: | Luftfahrt, Raumfahrt und Verkehr | ||||||||||||||||
HGF - Programm: | Raumfahrt | ||||||||||||||||
HGF - Programmthema: | keine Zuordnung | ||||||||||||||||
DLR - Schwerpunkt: | Raumfahrt | ||||||||||||||||
DLR - Forschungsgebiet: | R - keine Zuordnung | ||||||||||||||||
DLR - Teilgebiet (Projekt, Vorhaben): | R - keine Zuordnung | ||||||||||||||||
Standort: | Jena | ||||||||||||||||
Institute & Einrichtungen: | Institut für Datenwissenschaften > Sichere Digitale Systeme | ||||||||||||||||
Hinterlegt von: | Heinze, Thomas | ||||||||||||||||
Hinterlegt am: | 28 Sep 2020 08:55 | ||||||||||||||||
Letzte Änderung: | 24 Apr 2024 20:38 |
Nur für Mitarbeiter des Archivs: Kontrollseite des Eintrags