mirror of
https://github.com/openziti/zrok.git
synced 2024-11-25 09:33:43 +01:00
fix spelling mistake and add conditional setting
This commit is contained in:
parent
e186958f89
commit
142e7e50b6
@ -49,16 +49,20 @@ def __newPrivateShare(root: Root, request: model.ShareRequest) -> ShareRequest:
|
|||||||
)
|
)
|
||||||
|
|
||||||
def __newPublicShare(root: Root, request: model.ShareRequest) -> ShareRequest:
|
def __newPublicShare(root: Root, request: model.ShareRequest) -> ShareRequest:
|
||||||
return ShareRequest(env_zid=root.env.ZitiIdentity,
|
ret= ShareRequest(env_zid=root.env.ZitiIdentity,
|
||||||
share_mode=request.ShareMode,
|
share_mode=request.ShareMode,
|
||||||
frontend_selection=request.Frontends,
|
frontend_selection=request.Frontends,
|
||||||
backend_mode=request.BackendMode,
|
backend_mode=request.BackendMode,
|
||||||
backend_proxy_endpoint=request.Target,
|
backend_proxy_endpoint=request.Target,
|
||||||
auth_scheme=model.AUTH_SCHEME_NONE,
|
auth_scheme=model.AUTH_SCHEME_NONE,
|
||||||
oauth_email_domains=request.OauthEmailDomains,
|
oauth_email_domains=request.OauthEmailDomains,
|
||||||
oauth_provider=request.OauthProvider,
|
oauth_authorization_check_interval=request.OauthAuthorizationCheckInterval
|
||||||
oauth_authorization_check_interval=request.OauthAuthroizationCheckInterval
|
|
||||||
)
|
)
|
||||||
|
if request.OauthProvider != "":
|
||||||
|
ret.oauth_provider = request.OauthProvider
|
||||||
|
|
||||||
|
return ret
|
||||||
|
|
||||||
|
|
||||||
def DeleteShare(root: Root, shr: model.Share):
|
def DeleteShare(root: Root, shr: model.Share):
|
||||||
req = UnshareRequest(env_zid=root.env.ZitiIdentity,
|
req = UnshareRequest(env_zid=root.env.ZitiIdentity,
|
||||||
|
Loading…
Reference in New Issue
Block a user