by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 04 23:12
    miklish edited #715
  • Jun 04 23:12
    miklish edited #715
  • Jun 04 21:31
    miklish commented #716
  • Jun 04 21:26
    miklish edited #715
  • Jun 04 21:15
    chenyan71 commented #716
  • Jun 04 21:05
    miklish commented #716
  • Jun 04 20:59
    chenyan71 commented #716
  • Jun 04 20:45
    stevehu review_requested #716
  • Jun 04 20:43
    codecov-commenter commented #716
  • Jun 04 20:37
    miklish edited #715
  • Jun 04 20:35
    miklish review_requested #716
  • Jun 04 20:34
    miklish review_requested #716
  • Jun 04 20:34
    miklish review_requested #716
  • Jun 04 20:34
    miklish opened #716
  • Jun 04 20:32

    miklish on consul-http

    fix for issue #715 - ensure cac… (compare)

  • Jun 04 20:25
    miklish opened #715
  • Jun 02 12:29
    stevehu commented #712
  • Jun 01 17:19
    thirtysixmm commented #712
  • Jun 01 12:43
    stevehu commented #713
  • Jun 01 12:42

    stevehu on issue713

    (compare)

went-li
@went-li
对了还启动oauth2 -consle , 但是一样的不能访问~~~
image.png
Steve Hu
@stevehu
we don't use oauth2-console.
went-li
@went-li
提示好像也是资跨域的问题~~
Steve Hu
@stevehu
It is obsolete and will be removed soon.
went-li
@went-li
有门当头痛
Steve Hu
@stevehu
Take a look at the view in the light-portal
135 branch has the latest code.
went-li
@went-li
我要url地址
went-li
@went-li
这个试例有什么不一样~?
went-li
@went-li
没理实际的登
我想那前台端事例调通主要是想给我们的前端人员一个参考,因为我直接对后台调试中 auth2/code 的get 和post 只通了get, 也没理解实际登录时它分们的使用方式 ~
Steve Hu
@stevehu
In most cases, we need to use post so that we can provide a UI for users to login. Get most times will be used for LDAP or SPENGO integration within an organization for single sgin-on.
went-li
@went-li
是的我也是这样理解,可是什么 ,为什么 post 登录就是用不了呢~~~ get可以的
Steve Hu
@stevehu
Your setup is not correct. Please follow the tutorial.
went-li
@went-li
我用postman 都不能访问oauth2/code 的post接口
went-li
@went-li
新的portal 我启好了~也要是https 吗?本地我要改配置在那呢~~
Steve Hu
@stevehu
what is your URL to access oauth2/code?
went-li
@went-li
image.png
我要改成我的本地ip嘛~有两个~~
https://dev.lightapi.net :改成我的网关地址~~
Steve Hu
@stevehu
It is right. If it doesn't work, then debug into the StatelessAuthHandler in the light-portal.
went-li
@went-li
virtual-host.yml 这个我没太明白
Steve Hu
@stevehu
Yes. It is a very complicated concept. I will write a document on the virtual host. Give me some time.
went-li
@went-li
简单点说就可以,是router 启动后会构建一个虚拟机吗?
Steve Hu
@stevehu
Yes.
The virtual host is based on domains. So that multiple websites can be served by one light-4j instance.
went-li
@went-li
有点明白了~~
也就是说这个里面的东西我其实不应去改动
那router 和这个虚拟机什么关系呢~
Steve Hu
@stevehu
Router is just one instance of light-4j application and it supports virtual hosts.
If you simulate the same hosts like dev.lightapi.net and dev.signin.lightapi.net, you don't need to modify anything.
went-li
@went-li
你这一说我又有点晕了
image.png
这个配置肯定就改错了对不~~这个配置说明有吗?
Steve Hu
@stevehu
domain cannot be IP address.
went-li
@went-li
来份virtual-host.yml 的说明吧~~怎么配置
这个dev.lightapi.net 就指向了虚拟机的域名
多个服务也可以配置同一个dev.lightapi.net吗?
went-li
@went-li
我修改了js .可是为什么 点击登录还是地址还是dev.signin.lightapi.net 开始的呢
Steve Hu
@stevehu
Don't make un-necessary change except for IP addresses. Make it work first.
I will find time to write a document for the virtual host.
went-li
@went-li
dev.signin.lightapi.net可是这个是你云端的呀~ 我一断开网络 登入跳转都不能了~
Steve Hu
@stevehu
You need setup in your /etc/hosts file for local dns.
I don't know how to set it up on Windows thought.
went-li
@went-li
明白了设置
went-li
@went-li
我仔细 的跟踪了代码~实际是post的请求是没有授权~admin 帐号为什么会这样我不太明白~所以我请求要你云端的测试数据库数据
went-li
@went-li
还有一个问题就是我上次有提到的~要在oauth2里加一个服务组件不能启用的问题~ 能详细的说一下配置的方法吗~因为我们有这个需要~~拜托了