boring_generators icon indicating copy to clipboard operation
boring_generators copied to clipboard

Update google omniauth generator to use Rails Credentials/ENV variables for APP ID and Secrets

Open coolprobn opened this issue 4 months ago • 0 comments

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.

coolprobn avatar Oct 21 '24 12:10 coolprobn