首页 > 解决方案 > Need help to generate bearer token in Ansible

问题描述

I have project requirement, for that need to generate bearer token. I am able to generate bearer token using curl. I am trying to convert in ansible, its failing with error message "must specify grant_type"

curl sample code : curl -d "grant_type=client_credentials&client_id={{client_id}}&client_secret={{client_secret}}&scope=openid" -H "Content-type: application/x-www-form-urlencoded" -H "Accept: application/json" https://{{tenant}}/v1.0/endpoint/default/token

标签: bearer-token

解决方案


推荐阅读