-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #706 from gemini-hlsw/login
Login
- Loading branch information
Showing
18 changed files
with
341 additions
and
218 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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"hostName": "*", | ||
"environment": "DEVELOPMENT", | ||
"odbURI": "wss://lucuma-postgres-odb-dev.herokuapp.com/ws", | ||
"sso": { | ||
"uri": "https://sso-dev.gpp.lucuma.xyz", | ||
"readTimeoutSeconds": 10, | ||
"refreshTimeoutDeltaSeconds": 10, | ||
"refreshIntervalFactor": 1 | ||
} | ||
} | ||
] |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) 2016-2023 Association of Universities for Research in Astronomy, Inc. (AURA) | ||
// For license information see LICENSE or https://opensource.org/licenses/BSD-3-Clause | ||
|
||
package observe.ui | ||
|
||
import cats.Eq | ||
import cats.derived.* | ||
import io.circe.Decoder | ||
import lucuma.ui.enums.ExecutionEnvironment | ||
import lucuma.ui.sso.SSOConfig | ||
import org.http4s.Uri | ||
import org.http4s.circe.* | ||
|
||
final case class AppConfig( | ||
hostName: String, | ||
environment: ExecutionEnvironment, | ||
odbURI: Uri, | ||
sso: SSOConfig | ||
) derives Eq, | ||
Decoder |
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
20 changes: 20 additions & 0 deletions
20
modules/web/src/main/scala/observe/ui/BroadcastEvent.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) 2016-2023 Association of Universities for Research in Astronomy, Inc. (AURA) | ||
// For license information see LICENSE or https://opensource.org/licenses/BSD-3-Clause | ||
|
||
package observe.ui | ||
|
||
import scala.scalajs.js | ||
|
||
// These are messages sent across tabs thus they need to be JS compatible | ||
// We don't need yet more than just an index to differentiate | ||
sealed trait BroadcastEvent extends js.Object { | ||
def event: Int | ||
def value: js.Any // encode whatever value as a String. it can be e.g. json | ||
} | ||
|
||
object BroadcastEvent: | ||
val LogoutEventId = 1 | ||
|
||
class LogoutEvent(val nonce: String) extends BroadcastEvent: | ||
val event = LogoutEventId | ||
val value = nonce |
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
Oops, something went wrong.