-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ID-813 Add TOS rolling acceptance window.
- Loading branch information
1 parent
4b07b8e
commit 64f8223
Showing
3 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 8 additions & 2 deletions
10
src/main/scala/org/broadinstitute/dsde/workbench/sam/config/TermsOfServiceConfig.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
package org.broadinstitute.dsde.workbench.sam.config | ||
|
||
import java.time.Instant | ||
|
||
/** Terms of Service configuration. | ||
* @param isGracePeriodEnabled | ||
* Set to true if the grace period for ToS acceptance is active | ||
* @param version | ||
* The latest version of the Terms of Service | ||
* @param url | ||
* @param baseUrl | ||
* The url to the Terra Terms of Service. Used for validation and will be displayed to user in error messages | ||
* @param rollingAcceptanceWindowExpiration | ||
* The expiration time for the rolling acceptance window. If the user has not accepted the new ToS by this time, | ||
* they will be denied access to the system. Must be a valid UTC datetime string in ISO 8601 format | ||
* example: 2007-12-03T10:15:30.00Z | ||
*/ | ||
|
||
case class TermsOfServiceConfig(isTosEnabled: Boolean, isGracePeriodEnabled: Boolean, version: String, baseUrl: String) | ||
case class TermsOfServiceConfig(isTosEnabled: Boolean, isGracePeriodEnabled: Boolean, version: String, baseUrl: String, rollingAcceptanceWindowExpiration: Instant) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters