title: How to deal with OAuth2 client id and secret?
body: <p>I want to implement OAuth2 with Spring Boot. I saw maximum demo, they had used hard coded client id and secret. <strong>In a real project, how do we use these?</strong></p>
  
  <p>I am attaching two images. One is of client code, I have made it using Angular, another one is server code, made it with Spring Boot OAuth2.</p>
  
  <p><a href="https://i.stack.imgur.com/WcD0R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WcD0R.png" alt="angular code"></a></p>
  
  <p><a href="https://i.stack.imgur.com/319zw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/319zw.png" alt="spring boot code"></a></p>