Emi Matchu
f483722af4
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!
9 lines
160 B
Ruby
9 lines
160 B
Ruby
class Devise::OmniauthCallbacksController < ApplicationController
|
|
def neopass
|
|
render plain: "Success!"
|
|
end
|
|
|
|
def failure
|
|
render plain: "Failure"
|
|
end
|
|
end
|