- Don’t use file_get_contents use cURL. Just get cURL installed file_get_contents just is not save
- Whats the body response? (Not just the HTTP Code)
- It should be a ‘POST’ Not a ‘GET’
- see if anything relevant from this duplicate post OIDC Authorization - Bad Request - PHP