Bachelor thesis from Andreas Wache about OAuth2