<commit_before>package com.ubirch.auth.util.db.config.defaults

import java.net.URI

import com.ubirch.auth.model.db.ContextProviderConfig

/**
  * author: cvandrei
  * since: 2017-03-14
  */
object OidcContextProvider {

  final val activeContexts: Seq[String] = Seq(
    // local
    ContextDefinitions.ctxTrackleLocal,
    ContextDefinitions.ctxUbirchAdminUILocal,
    ContextDefinitions.ctxTrackleAdminUILocal,
    // dev
    ContextDefinitions.ctxUbirchAdminUIDev,
    // demo
    ContextDefinitions.ctxUbirchAdminUIDemo
  )

  final val contextProviderList: Seq[ContextProviderConfig] = Seq(
    // local
    trackleLocalGoogle, trackleLocalYahoo,
    ubirchAdminUILocalGoogle,
    trackleAdminUILocalGoogle,
    // dev
    ubirchAdminUIDevGoogle,
    // demo
    ubirchAdminUIDemoGoogle
  )

  /*
   * *-local
   ***********************************************************************/

  private lazy val trackleLocalGoogle: ContextProviderConfig = ContextProviderConfig(
    context = ContextDefinitions.ctxTrackleLocal,
    provider = OidcProviders.providerIdGoogle,
    clientId = "370115332091-kqf5hu698s4sodrvv03ka3bule530rp5.apps.googleusercontent.com",
    clientSecret = "<KEY>",
    callbackUrl = new URI("https://localhost:10000/oidc-callback-google")
  )

  private lazy val trackleLocalYahoo: ContextProviderConfig = ContextProviderConfig(
    context = ContextDefinitions.ctxTrackleLocal,
    provider = OidcProviders.providerIdYahoo,
    clientId = "<KEY>",
    clientSecret = "069dd28f2144ed043dcb70e27f99e424369c3040",
    callbackUrl = new URI("https://example.com/oidc-callback-yahoo")
  )

  private lazy val ubirchAdminUILocalGoogle: ContextProviderConfig = ContextProviderConfig(
    context = ContextDefinitions.ctxUbirchAdminUILocal,
    provider = OidcProviders.providerIdGoogle,
    clientId = "370115332091-q7dccmh0leq20rqgs2550vp0u67pj42p.apps.googleusercontent.com",
    clientSecret = "<KEY>",
    callbackUrl = new URI("http://localhost:9000/auth?providerId=google")
  )

  private lazy val trackleAdminUILocalGoogle: ContextProviderConfig = ContextProviderConfig(
    context = ContextDefinitions.ctxTrackleAdminUILocal,
    provider = OidcProviders.providerIdGoogle,
    clientId = "370115332091-dqhiaemv68bjvtnp84beg26plrpkmc8t.apps.googleusercontent.com",
    clientSecret = "<KEY>
    callbackUrl = new URI("http://localhost:9100/auth?providerId=google")
  )

  /*
   * *-dev
   ***********************************************************************/

  private lazy val ubirchAdminUIDevGoogle: ContextProviderConfig = ContextProviderConfig(
    context = ContextDefinitions.ctxUbirchAdminUIDev,
    provider = OidcProviders.providerIdGoogle,
    clientId = "370115332091-6rk357g8229khqp5g2ea3qu1hdesfq4p.apps.googleusercontent.com",
    clientSecret = "MV0WoHigItLlgRl1fS7ILP_g",
    callbackUrl = new URI("http://ubirch.dev.ubirch.com/auth?providerId=google")
  )

  /*
   * *-demo
   ***********************************************************************/

  private lazy val ubirchAdminUIDemoGoogle: ContextProviderConfig = ContextProviderConfig(
    context = ContextDefinitions.ctxUbirchAdminUIDemo,
    provider = OidcProviders.providerIdGoogle,
    clientId = "370115332091-6rk357g8229khqp5g2ea3qu1hdesfq4p.apps.googleusercontent.com",
    clientSecret = "MV0WoHigItLlgRl1fS7ILP_g",
    callbackUrl = new URI("http://ubirch.dev.ubirch.com/auth?providerId=google")
  )

}

object ContextDefinitions {

  /*
   * *-local
   *********************************************************************/

  final val ctxTrackleAdminUILocal = "trackle-admin-ui-local"

  final val ctxTrackleLocal = "trackle-local"

  final val ctxUbirchAdminUILocal = "ubirch-admin-ui-local"
<commit_msg>fixed demo env admin UI<commit_after>package com.ubirch.auth.util.db.config.defaults

import java.net.URI

import com.ubirch.auth.model.db.ContextProviderConfig

/**
  * author: cvandrei
  * since: 2017-03-14
  */
object OidcContextProvider {

  final val activeContexts: Seq[String] = Seq(
    // local
    ContextDefinitions.ctxTrackleLocal,
    ContextDefinitions.ctxUbirchAdminUILocal,
    ContextDefinitions.ctxTrackleAdminUILocal,
    // dev
    ContextDefinitions.ctxUbirchAdminUIDev,
    // demo
    ContextDefinitions.ctxUbirchAdminUIDemo
  )

  final val contextProviderList: Seq[ContextProviderConfig] = Seq(
    // local
    trackleLocalGoogle, trackleLocalYahoo,
    ubirchAdminUILocalGoogle,
    trackleAdminUILocalGoogle,
    // dev
    ubirchAdminUIDevGoogle,
    // demo
    ubirchAdminUIDemoGoogle
  )

  /*
   * *-local
   ***********************************************************************/

  private lazy val trackleLocalGoogle: ContextProviderConfig = ContextProviderConfig(
    context = ContextDefinitions.ctxTrackleLocal,
    provider = OidcProviders.providerIdGoogle,
    clientId = "370115332091-kqf5hu698s4sodrvv03ka3bule530rp5.apps.googleusercontent.com",
    clientSecret = "<KEY>",
    callbackUrl = new URI("https://localhost:10000/oidc-callback-google")
  )

  private lazy val trackleLocalYahoo: ContextProviderConfig = ContextProviderConfig(
    context = ContextDefinitions.ctxTrackleLocal,
    provider = OidcProviders.providerIdYahoo,
    clientId = "<KEY>",
    clientSecret = "069dd28f2144ed043dcb70e27f99e424369c3040",
    callbackUrl = new URI("https://example.com/oidc-callback-yahoo")
  )

  private lazy val ubirchAdminUILocalGoogle: ContextProviderConfig = ContextProviderConfig(
    context = ContextDefinitions.ctxUbirchAdminUILocal,
    provider = OidcProviders.providerIdGoogle,
    clientId = "370115332091-q7dccmh0leq20rqgs2550vp0u67pj42p.apps.googleusercontent.com",
    clientSecret = "<KEY>",
    callbackUrl = new URI("http://localhost:9000/auth?providerId=google")
  )

  private lazy val trackleAdminUILocalGoogle: ContextProviderConfig = ContextProviderConfig(
    context = ContextDefinitions.ctxTrackleAdminUILocal,
    provider = OidcProviders.providerIdGoogle,
    clientId = "370115332091-dqhiaemv68bjvtnp84beg26plrpkmc8t.apps.googleusercontent.com",
    clientSecret = "<KEY>
    callbackUrl = new URI("http://localhost:9100/auth?providerId=google")
  )

  /*
   * *-dev
   ***********************************************************************/

  private lazy val ubirchAdminUIDevGoogle: ContextProviderConfig = ContextProviderConfig(
    context = ContextDefinitions.ctxUbirchAdminUIDev,
    provider = OidcProviders.providerIdGoogle,
    clientId = "370115332091-6rk357g8229khqp5g2ea3qu1hdesfq4p.apps.googleusercontent.com",
    clientSecret = "MV0WoHigItLlgRl1fS7ILP_g",
    callbackUrl = new URI("http://ubirch.dev.ubirch.com/auth?providerId=google")
  )

  /*
   * *-demo
   ***********************************************************************/

  private lazy val ubirchAdminUIDemoGoogle: ContextProviderConfig = ContextProviderConfig(
    context = ContextDefinitions.ctxUbirchAdminUIDemo,
    provider = OidcProviders.providerIdGoogle,
    clientId = "370115332091-6rk357g8229khqp5g2ea3qu1hdesfq4p.apps.googleusercontent.com",
    clientSecret = "MV0WoHigItLlgRl1fS7ILP_g",
    callbackUrl = new URI("http://ubirch.demo.ubirch.com/auth?providerId=google")
  )

}

object ContextDefinitions {

  /*
   * *-local
   *********************************************************************/

  final val ctxTrackleAdminUILocal = "trackle-admin-ui-local"

  final val ctxTrackleLocal = "trackle-local"

  final val ctxUbirchAdminUILocal = "ubirch-admin-ui-local"

{'fraction_non_alphanumeric': 0.16066407818985137, 'fraction_numerical': 0.04632480921140715, 'mean_word_length': 4.933280381254964, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '144022', 'n_tokens_mistral': 2619, 'n_tokens_neox': 2338, 'n_words': 322}