by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 17:01

    stevehu on 1.6.x

    light-bot checkin CHANGELOG.md (compare)

  • 16:56

    stevehu on 1.6.x

    upgrade to version 1.6.21 befor… (compare)

  • 16:40
    stevehu commented #715
  • 16:39

    stevehu on master

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

  • 16:37
    stevehu commented #715
  • 16:22

    stevehu on consul-http

    (compare)

  • 16:22

    stevehu on 1.6.x

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

  • 16:22
    stevehu closed #716
  • 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
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里加一个服务组件不能启用的问题~ 能详细的说一下配置的方法吗~因为我们有这个需要~~拜托了
Steve Hu
@stevehu
Take a look at this document first and then take a look at the light-oauth2 code base. https://doc.networknt.com/service/oauth/authenticator/
Let me know if you have any specific question while working on it.
went-li
@went-li
看完了~有点明白了~大概就是我拷贝一个oauth2的配置改改就要可启动,就是不知道接口能不能用了哈哈
went-li
@went-li
登录时跳转的授权页面,是在密码验证完后?而授权接口是指向客户的,比如事例银行的服务......不知道,理解的正确不!
Steve Hu
@stevehu
The original application has a login link. Once it is clicked, the browser redirects to the signin site. After authentication, it is redirected back to the original app.
went-li
@went-li
我说的是登录输入用户名,密码,点击登录,有一个,授权页,用户点击授权或者拒绝,的这个节点,是指向银行服务的
went-li
@went-li
认证方式
身份验证逻辑它首先检查传入是否为LightPasswordCredential的实例,,我跟踪发现为否,这是少了什么🤔……
Steve Hu
@stevehu
It should be LightPasswordCredential. What is the instance then?
Once you reach the permission page, it is working :)
I am writing a new authenticator for light-portal user management integration. It will take another two or three days.
Steve Hu
@stevehu
@went-li While I am writing a tutorial about customized authenticator in light-oauth2, I thought it might help you to check out the code first. Take a look at the implementation at networknt/light-oauth2#236
went-li
@went-li
这个这portal的认证~ 从新实现了的
也就是说我们自己也可以这样重新自己实现,不要默认的
LightPasswordCredential 是怎么来的~~呢~? 我猜 是数据库里查的,还有就是配置文 件里的,因为直接登录时我们只传了usernam各password
went-li
@went-li
但admin帐户oauth2的配置里面是有的吧~ 数据库里也是有的~为什么 不能过~~就不太明白了
Steve Hu
@stevehu
LightPasswordCredential is designed to carry more information than the password. It has usertype and authenticate class.
I don't know your database, so I cannot tell why the login doesn' t work. You can debug into the code service to figure it out.
went-li
@went-li
数据库里是你给的sql生成的数据~
went-li
@went-li
/Users/stevehu/networknt/light-oauth2/code/src/test/resources/config/krb_oauth2code_poc-allenc.keytab 这是什么
Steve Hu
@stevehu
Don't worry about the keytab. It is active directory. You will be using database by default.
went-li
@went-li
networknt / light-oauth2#236的实现 我只看到了LightPortalAuthenticator ,LightPortalAuth是空的呢LightPasswordCredential这个也没见到实例呢~~
Steve Hu
@stevehu
LightPortalAuth is just an identifier.
Steve Hu
@stevehu

We have released 1.6.18 for jdk8 and 2.0.12 for jdk11 as scheduled. Both releases are backward compatible with some defects addressed, and some enhancements added.

For more all the PRs included in each release, please visit https://trello.com/b/189msq9S/release-schedule or individual release note.

went-li
@went-li
rpc 远程调用试例呢?
怎么看不到了