Skip to content

Commit

Permalink
refactor email patterns field in share request in python sdk (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelquigley committed Feb 16, 2024
1 parent 0c38ab0 commit 6023ca7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdk/python/sdk/zrok/zrok/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/sdk/zrok/zrok/share.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "":
Expand Down

0 comments on commit 6023ca7

Please sign in to comment.