com.cognite.sdk.scala.v1.sessions.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cognite-sdk-scala_2.13 Show documentation
Show all versions of cognite-sdk-scala_2.13 Show documentation
Scala SDK for Cognite Data Fusion.
The newest version!
// Copyright 2020 Cognite AS
// SPDX-License-Identifier: Apache-2.0
package com.cognite.sdk.scala.v1
final case class Session(
id: Long,
`type`: Option[String],
status: String,
nonce: String,
clientId: Option[String] = None // Is not provided when creating with token exchange flow
)
final case class SessionCreateWithToken(
tokenExchange: Boolean = true
)
final case class SessionCreateWithCredential(
clientId: String,
clientSecret: String
)
final case class SessionList(
id: Long,
`type`: String,
status: String,
creationTime: Long,
expirationTime: Long,
clientId: Option[String] = None // Is not provided when creating with token exchange flow
)
final case class BindSessionRequest(
nonce: String
)
final case class RefreshSessionRequest(
sessionId: Long,
sessionKey: String
)
final case class SessionTokenResponse(
id: Long,
accessToken: String,
expiresIn: Long,
mustRefreshIn: Option[Long],
sessionKey: Option[String]
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy