All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.wojnowski.oidc4s.json.circe.OpenIdConfigurationCirceDecoder.scala Maven / Gradle / Ivy

The newest version!
package me.wojnowski.oidc4s.json.circe

import io.circe.Decoder
import me.wojnowski.oidc4s.Issuer
import me.wojnowski.oidc4s.config.OpenIdConfig

trait OpenIdConfigurationCirceDecoder {
  private implicit val issuerDecoder: Decoder[Issuer] =
    Decoder[String].map(Issuer.apply)

  protected implicit val openIdConfigurationDecoder: Decoder[OpenIdConfig] =
    Decoder.forProduct2[OpenIdConfig, Issuer, String]("issuer", "jwks_uri")(OpenIdConfig.apply)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy