fix spelling mistake and add conditional setting

This commit is contained in:
Cam 2023-12-11 09:32:07 -06:00
parent e186958f89
commit 142e7e50b6
No known key found for this signature in database
GPG Key ID: 367B7C7EBD84A8BD

View File

@ -49,16 +49,20 @@ def __newPrivateShare(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,
frontend_selection=request.Frontends,
backend_mode=request.BackendMode,
backend_proxy_endpoint=request.Target,
auth_scheme=model.AUTH_SCHEME_NONE,
oauth_email_domains=request.OauthEmailDomains,
oauth_provider=request.OauthProvider,
oauth_authorization_check_interval=request.OauthAuthroizationCheckInterval
oauth_authorization_check_interval=request.OauthAuthorizationCheckInterval
)
if request.OauthProvider != "":
ret.oauth_provider = request.OauthProvider
return ret
def DeleteShare(root: Root, shr: model.Share):
req = UnshareRequest(env_zid=root.env.ZitiIdentity,