boring_generators
boring_generators copied to clipboard
Update google omniauth generator to use Rails Credentials/ENV variables for APP ID and Secrets
Right now we add a line for the App ID and Secrets like this and ask users to figure out the addition of those values.
config.omniauth :google_oauth2, "APP_ID", "APP_SECRET"
Instead we should take these values from Rails credentials or ENV variables; whatever users prefer.
You can see a similar implementation for this in sentry generator: https://github.com/abhaynikam/boring_generators/blob/68133b1e9c95bc8dd7db48d7a38a78b4eac4903e/lib/generators/boring/sentry/install/install_generator.rb#L35
Also need to add tests for this change.