jaredonline / google-authenticator

Ruby gem to implement Google's MFA authenticator
MIT License
307 stars 84 forks source link

Adding the gem to the project changes the Content-Type of http response to my GraphQL API #103

Open jivea opened 11 months ago

jivea commented 11 months ago

Hello, First of all, thank you for this very usefull and time saving gem. Thanks to it, I could integrate MFA with Authenticar apps.

However, when deploying the feature to the testing environement, it appeared to break the JSON API of the project. I could more or less isolate the problem that I can describe like this:

I am pretty novice to Ruby on Rails and I have to admit that I don't understand much of what's going under all this.

Do you have an idea of how I could fix or workaround the problem ?

jivea commented 10 months ago

Hi @jaredonline, any thoughts on this topic? What if I submit a pull request that adds a setting "Apply on API" ? Any chance to get it merged?

jaredonline commented 10 months ago

Heya @jivea sorry I've been slow to respond - I don't spend a lot of time on this project anymore.

I'm not really sure why adding the gem would change the response type of your API responses... I haven't encountered that before and there isn't anything in the project that should do that.

What version of Rails/Ruby/Bundler are you using? What other gems are in your gemfile?