Skip to content

Commit

Permalink
oauth setup for rdv insertion seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
victormours committed Nov 13, 2024
1 parent 03e35f6 commit 4457543
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions db/seeds/rdv_insertion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -343,3 +343,16 @@
# [email protected] et [email protected]
user.update!(notes: link)
end

rdv_insertion_logo_base64 = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgaWQ9IkNhbHF1ZV8xIgogICB2aWV3Qm94PSIwIDAgNDgzLjMzIDQ4My4zMyIKICAgdmVyc2lvbj0iMS4xIgogICB3aWR0aD0iNDgzLjMyOTk5IgogICBoZWlnaHQ9IjQ4My4zMjk5OSIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZGVmcwogICAgIGlkPSJkZWZzMSI+CiAgICA8c3R5bGUKICAgICAgIGlkPSJzdHlsZTEiPi5jbHMtMXtmaWxsOiNlYzRjNGM7fS5jbHMtMntmaWxsOiMwODNiNjY7fTwvc3R5bGU+CiAgPC9kZWZzPgogIDxnCiAgICAgaWQ9ImcxOCI+CiAgICA8ZwogICAgICAgaWQ9ImcxOSIKICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMC45MTcyMTMsLTAuMDAzMDUwMDYpIj4KICAgICAgPHBhdGgKICAgICAgICAgY2xhc3M9ImNscy0yIgogICAgICAgICBkPSJtIDE5My45Nyw0MTEuMzkgOC4wMywtMS45NyBjIDAsMCAxOS4xNiwtNy42OSAyNC41NCwtMzYuNzEgNS4zOCwtMjkuMDEgMzAuNTMsLTQ4LjU2IDU4LjY2LC00MC4yNyAyMC4yNCwtMi44OCA1LjQ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UsMC40OCAwLjA1LDAuNzMgeiIKICAgICAgICAgICBpZD0icGF0aDE3IiAvPgogICAgICA8L2c+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K" # rubocop:disable Layout/LineLength

application = Doorkeeper::Application.new(
name: "RDV Insertion",
uid: "zC24y16rYftyrBgTj8h08g1NZKkwStXWe3E_lLMGoHc",
redirect_uri: "http://localhost:8000/auth/rdvservicepublic/callback",
logo_base64: rdv_insertion_logo_base64
)

test_secret = "development-EdtuETfEK5Lr_--kx6S_QlItIJov-iThILw6M8IyTus" # Pour le développement en local uniquement
application.secret_strategy.store_secret(application, :secret, test_secret)
application.save!

0 comments on commit 4457543

Please sign in to comment.