com.gu.identity.IdapiConfig.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of membership-common_2.12 Show documentation
Show all versions of membership-common_2.12 Show documentation
Scala library for common Guardian Membership/Subscriptions functionality.
package com.gu.identity
import com.typesafe.config.Config
case class IdapiConfig(
url: String,
token: String
)
object IdapiConfig {
def from(config: Config, environmentName: String) = IdapiConfig(
url = config.getString("identity.apiUrl"),
token = config.getString("identity.apiToken")
)
}