refactor email patterns field in share request in python sdk (#413)

This commit is contained in:
Michael Quigley 2024-02-16 11:57:41 -05:00
parent 0c38ab0f43
commit 6023ca7c5b
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ class ShareRequest:
Frontends: list[str] = field(default_factory=list[str])
BasicAuth: list[str] = field(default_factory=list[str])
OauthProvider: str = ""
OauthEmailDomains: list[str] = field(default_factory=list[str])
OauthEmailAddressPatterns: list[str] = field(default_factory=list[str])
OauthAuthorizationCheckInterval: str = ""
Reserved: bool = False
UniqueName: str = ""

View File

@ -78,7 +78,7 @@ def __newPublicShare(root: Root, request: model.ShareRequest) -> ShareRequest:
backend_mode=request.BackendMode,
backend_proxy_endpoint=request.Target,
auth_scheme=model.AUTH_SCHEME_NONE,
oauth_email_domains=request.OauthEmailDomains,
oauth_email_domains=request.OauthEmailAddressPatterns,
oauth_authorization_check_interval=request.OauthAuthorizationCheckInterval
)
if request.OauthProvider != "":