Authenticating user from hardcode (config) username and password

Pretty much … you need some sort of authentication. Of the available flows, client creds is the one that fits your model. Client creds is used whenever a server / service needs to talk directly to an authorization server without a user involved.