[英]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.