azist / azos

A to Z Sky Operating System / Microservice Chassis Framework
MIT License
213 stars 29 forks source link

Unable to bootstrap AuthKit because server requires `/sys` system forest node, however the server is needed to roll-on bootstrap scripts, but the server can not start. Need to default sys node to empty one instead of error #838

Closed itadapter closed 1 year ago

itadapter commented 1 year ago

Azos.AuthKit.Server/DefaultIdpHandlerLogic.cs:105

 using (var scope = new SecurityFlowScope(TreePermission.SYSTEM_USE_FLAG))
      {
        m_TreeAuthKitSysNode = m_Forest.GetNodeInfoAsync(idSys)
                                      .GetAwaiter()
                                      .GetResult()
                                      .NonNull("configured `{0}`".Args(idSys));  //<==== THIS fails
      }
itadapter commented 1 year ago

This issue may not be 100% correct. The tree creation and setuop scripting DO NOT need AuthKit. I think we got confused with scripting.

This issue is propbably meaning less. Lets keep it open until we are done bootstrapping authkit

g8sun commented 1 year ago

This works as expected. You can close it as this is not an issue. The problem was running scripts out-of-order.