How to do CAS authentication using electron?


I am trying to access service which requires CAS authentication. CAS Authentication redirects to the URL where username and password is present. Once you enter the credentials, It returns the token and that token is used for authentication. Please let me know how to proceed on this.