1
0
Fork 0
forked from OpenNeo/impress
impress/app/controllers/devise/omniauth_callbacks_controller.rb
Emi Matchu f483722af4 NeoPass strategy interacts with dev NeoPass server, which is still WIP
In this change, we wire up a new NeoPass OAuth2 strategy for OmniAuth,
and hook up the "Log in with NeoPass" button to use it!

The authentication currently fails with `invalid_credentials`, and
shows the `owo` response we hardcoded into the NeoPass server's token
response. We need to finally follow up on the little `TODO` written in
there!
2024-03-14 16:13:31 -07:00

9 lines
160 B
Ruby

class Devise::OmniauthCallbacksController < ApplicationController
def neopass
render plain: "Success!"
end
def failure
render plain: "Failure"
end
end