1
0
Fork 0
forked from OpenNeo/impress
impress/app/controllers/devise/omniauth_callbacks_controller.rb
Emi Matchu 31a11a04fa Read and customize the username reported by neopass-server
Okay, `sub` seems to be a pretty standard place for user identifiers.
Let's start with that assumption! I override the `oauth2-mock-server`'s
default of `johndoe` with `theneopetsteam`, just to be cute :3
2024-03-14 18:19:45 -07:00

9 lines
182 B
Ruby

class Devise::OmniauthCallbacksController < ApplicationController
def neopass
render plain: request.env["omniauth.auth"].uid
end
def failure
render plain: "Failure"
end
end