OAuth 2.0 magical framework