The case is, we need to send messages to Web Server over HTTPS. On first message (OAuth with client credentials grant type and user name /password) we need to get an authentication token on a external Authentication Web Server . This server send us our token and we need to use it in all next requests. This token is dynamic and had expiration (Token expires every 24 hours ) . if token expire or response like invalid/expire token then we need to call Authentication Web Server again to get another token an resend message.
Please share if you have some example related to this.