mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
15 lines
558 B
Ruby
15 lines
558 B
Ruby
|
# Create OAuth applications for Maybe's first-party apps
|
||
|
# These are the only OAuth apps that will exist - external developers use API keys
|
||
|
|
||
|
# Maybe iOS App
|
||
|
ios_app = Doorkeeper::Application.find_or_create_by(name: "Maybe iOS") do |app|
|
||
|
app.redirect_uri = "maybe://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."
|