mirror of
https://github.com/we-promise/sure.git
synced 2026-04-08 14:54:49 +00:00
* Replace Maybe for Sure in select code areas * Make sure passwords are consistent * Remove (admin|member) from demo data first name * Database and schema names finally to `sure` * Fix broken test * Another (benchmarking) database name to `sure_*` * More rebranding to Sure * Missed this Maybe mention in the same page * Random nitpicks and more Maybes * Demo data accounts and more Maybes * Test data account updates * Impersonation test accounts * Consistency with `compose.example.yml`
15 lines
557 B
Ruby
15 lines
557 B
Ruby
# Create OAuth applications for Sure's first-party apps
|
|
# These are the only OAuth apps that will exist - external developers use API keys
|
|
|
|
# Sure iOS App
|
|
ios_app = Doorkeeper::Application.find_or_create_by(name: "Sure iOS") do |app|
|
|
app.redirect_uri = "sureapp://oauth/callback"
|
|
app.scopes = "read_accounts read_transactions read_balances"
|
|
app.confidential = false # Public client (mobile app)
|
|
end
|
|
|
|
puts "Created OAuth applications:"
|
|
puts "iOS App - Client ID: #{ios_app.uid}"
|
|
puts ""
|
|
puts "External developers should use API keys instead of OAuth."
|