I want to login to my application with the use of https://login.microsoftonline.com/{tenant}/oauth2/token
endpoint. I'm filling parameters(client_id, client_secret, resource and grant_type:client_credentials) in post request and getting access token. When I use it to login my API spring boot gives me error:
com.microsoft.aad.adal4j.AuthenticationException: {"error_description":"AADSTS50058: A silent sign-in request was sent but no user is signed in.
What should I do to get valid bearer token with only post request ? Or is there any azure configuration I am missing to ?