by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 04 18:21
    stevehu commented #740
  • Jul 04 18:21
    stevehu commented #740
  • Jul 04 18:20

    stevehu on 1.6.x

    fixes #740 check escape backsla… (compare)

  • Jul 04 18:19

    stevehu on issue740

    (compare)

  • Jul 04 18:19
    stevehu closed #740
  • Jul 04 18:19

    stevehu on master

    fixes #740 check escape backsla… (compare)

  • Jul 04 18:19
    stevehu closed #741
  • Jul 04 16:58
    stevehu review_requested #741
  • Jul 04 16:58
    stevehu review_requested #741
  • Jul 04 16:58
    stevehu opened #741
  • Jul 04 16:58

    stevehu on issue740

    fixes #740 check escape backsla… (compare)

  • Jul 04 16:57
    stevehu opened #740
  • Jul 03 22:23
    stevehu commented #723
  • Jul 03 22:22
    stevehu commented #723
  • Jul 03 22:21

    stevehu on 1.6.x

    fixes #723 Token replacement in… (compare)

  • Jul 03 22:18

    stevehu on issue723

    (compare)

  • Jul 03 22:18
    stevehu closed #723
  • Jul 03 22:18
    stevehu closed #738
  • Jul 03 21:01
    stevehu commented #710
  • Jul 03 21:00
    stevehu closed #710
Steve Hu
@stevehu
You don't have set
went-li
@went-li
ok https 启动好了~ 但依然没有与后台交互
Steve Hu
@stevehu
I don't know what is going on as you have customized and there is no virtual host available. I don't think it will work with localhost. You need to follow one of the tutorials first to make sure it works and then start customization.
went-li
@went-li
其实我并没有自定什么 ,只是将oauth2 和router 在IDEA 运行了,之前 login -view 直接不能在本地打包运的,后来改node 的版本 好了
Steve Hu
@stevehu
You cannot use localhost as the virtual host needs real domains.
I am using lightapi.net and signin.lightapi.net
or dev.lightapi.net and dev.signin.lightapi.net for dev environment.
went-li
@went-li
那这样~我前端的login-view 部署到另一台机上~~
总满足条件吧
Steve Hu
@stevehu
it doesn't matter if you use one computer or two computers.
virtual host means you can host two or more domains from one instance on one computer.
Here is my /etc/hosts.
#192.168.1.144 lightapi.net signin.lightapi.net

#192.168.1.144 ob.lightapi.net obsignin.lightapi.net

#192.168.1.144 login.lightapi.net

#192.168.1.144 dev.lightapi.net dev.signin.lightapi.net

#192.168.1.144 dev.lightapi.net

#192.168.1.144 codegen.lightapi.net
I don't know how to do it on windows.
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