# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html

<% require 'bcrypt' %>

kavita_app:
  name: Kavita Reader
  slug: kavita-reader
  app_type: oidc
  client_id: <%= SecureRandom.urlsafe_base64(32) %>
  client_secret_digest: <%= BCrypt::Password.create(SecureRandom.urlsafe_base64(48)) %>
  redirect_uris: |
    https://kavita.example.com/signin-oidc
    https://kavita.example.com/signout-callback-oidc
  metadata: "{}"
  active: true
  require_pkce: false

another_app:
  name: Another App
  slug: another-app
  app_type: oidc
  client_id: <%= SecureRandom.urlsafe_base64(32) %>
  client_secret_digest: <%= BCrypt::Password.create(SecureRandom.urlsafe_base64(48)) %>
  redirect_uris: |
    https://app.example.com/auth/callback
  metadata: "{}"
  active: true
  require_pkce: false

audiobookshelf_app:
  name: Audiobookshelf
  slug: audiobookshelf
  app_type: oidc
  client_id: <%= SecureRandom.urlsafe_base64(32) %>
  client_secret_digest: <%= BCrypt::Password.create(SecureRandom.urlsafe_base64(48)) %>
  redirect_uris: |
    https://abs.example.com/auth/openid/callback
  metadata: "{}"
  active: true
  require_pkce: false
