问题描述
我正在使用buildpacks.io中的本教程在heroku上部署Nginx buildpack:
http://jkutner.github.io/2020/05/26/cloud-native-buildpacks-shim.html
server {
listen 80;
location / {
auth_request /_oauth2_token_introspection;
proxy_pass http://my_backend;
}
location = /_oauth2_token_introspection {
internal;
js_content introspectAccesstoken;
}
location /_oauth2_send_request {
internal;
proxy_method POST;
proxy_set_header Authorization "Bearer SecretForOAuthServer";
proxy_set_header Content-Type "application/x-www-form-urlencoded";
proxy_set_body "token=$http_apikey&token_hint=access_token";
proxy_pass https://idp.example.com/oauth/token/introspect;
}
}
# vim: Syntax=Nginx
这是我关注的Nginx教程: https://www.nginx.com/blog/validating-oauth-2-0-access-tokens-nginx/
Nginx的buildpack应该包含auth_request模块,是否有类似的东西或如何创建一个有效的东西?预先感谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)