bearer-token - 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
解决方案
推荐阅读
- php - 循环如何在 PHP 中的 FPDF 中使用换行符?
- google-sheets - 在 Google 表格中,为什么 rank() 会以不同的方式处理两个相同的值?
- config - 如何更改我的dependabot 配置以排除主要版本
- reactjs - React Typescript 组件:'new' 表达式,其目标缺少构造签名,隐式具有'any' type.ts(7009)
- mysql - 如何编写包含左连接的创建表语句?
- java - FireBase TIMESTAMP 意外更新
- reactjs - ReactNative #1 的一般问题:找不到 RCT.RootContentView.h 文件 ReactNativeGestureHandler.m
- java - 手机连接电源时启动安卓应用
- python - 从多个 URL 抓取多个页面上的表数据(Python 和 BeautifulSoup)
- ruby-on-rails - 在对 Rails 道具做出反应时传入逻辑