Mobiquity interview question

How Oauth2 works with REST?