OAuth lets users grant your application access and then you may act on their behalf. The OAuth flow is described here.