mirror of
https://github.com/openziti/zrok.git
synced 2025-01-22 05:48:46 +01:00
refactor email patterns field in share request in python sdk (#413)
This commit is contained in:
parent
0c38ab0f43
commit
6023ca7c5b
@ -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 = ""
|
||||
|
@ -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 != "":
|
||||
|
Loading…
Reference in New Issue
Block a user