title: Oauth2 and OpenId Connect Implementation
body: <p>We are trying to implement an application where UI is in angular and backend is in Spring boot.
  We need to implement openId and oauth2 in our application.
  Backend api's needs to be more secure.</p>
  <p>I am just confusing which  oauth flow to be used  either authorization grant flow and password grant flow.</p>
  <p>Can any one suggest me which one need to use in this scenario and why?</p>