简体   繁体   English

从外部应用程序使用 REST API 登录管理

[英]Login manageiq using REST API from external application

Im trying to login to manageIQ using REST API from external application (internal app).我正在尝试使用来自外部应用程序(内部应用程序)的 REST API 登录到 manageIQ。

Currently im using curl refer " http://manageiq.org/docs/reference/fine/api/overview/auth " and i successfully get response for authentication but im not sure what next step to make it autologin from the my application.目前我正在使用 curl 参考“ http://manageiq.org/docs/reference/fine/api/overview/auth ”,我成功地获得了身份验证的响应,但我不确定下一步是什么让它从我的应用程序自动登录。

Flow of what im trying to do: 1. Click link from my application 2. Link will run function to request curl authentication using rest 3. redirect to manageiq URL upon successfully get token我尝试做的流程: 1. 单击我的应用程序中的链接 2. 链接将运行函数以使用 rest 请求 curl 身份验证 3. 成功获取令牌后重定向到 manageiq URL

I think you should refer to latest documentation If I get correctly your question, you may just define your login and password as an env variables (or read it from some file if you prefer this) and include this in your function.我认为你应该参考最新的文档如果我正确地回答了你的问题,你可以将你的登录名和密码定义为一个 env 变量(或者如果你喜欢从某个文件中读取它)并将其包含在你的函数中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有没有机会使用rest API在ManageIQ中创建VM? - Is there any chance to create VM in ManageIQ using rest API? 如何将 ManageIQ 应用程序开发模式转换为生产模式,这将生成生产日志而不是开发日志 - how to convert ManageIQ application development mode to production mode which will generate production log instead of development log 使用ManageIQ的Openshift监控 - Openshift monitoring with ManageIQ Manageiq无法访问Centos 7 VMWare中的Hawkular - Manageiq not access to Hawkular in Centos 7 VMWare Docker容器内的ManageIQ Web应用程序无法连接到外部容器的Hawkular - ManageIQ web application inside Docker container can’t connect to Hawkular outside container 为什么图像没有显示在 ManageIQ 的 Azure 清单中? - Why are images not showing in Azure inventory in ManageIQ? ManageIQ / Cloudforms 动态表单 - ManageIQ / Cloudforms dynamic form 如何在Rails控制台中设置基本ManageIQ自动化环境? - How to setup basic ManageIQ automate environment in Rails console? Cloudforms / manageiq日志格式说明登录自动化日志 - Cloudforms/manageiq log format explanation logs in of automation log 如何在ManageIQ中运行特定的工作程序? - How to run a specific worker in ManageIQ?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM