mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-22 06:44:55 +08:00
Add compatibility with ActiveDirectory Federation Services (#6543)
This commit is contained in:
parent
47fae00a5f
commit
ccd2d0b4df
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ module Users
|
|||
|
||||
email = auth.info.email
|
||||
email ||= auth.dig(:extra, :raw_info, :id_token_claims, :emails)&.first
|
||||
auth.uid ||= auth.dig(:extra, :raw_info, :sub)
|
||||
user = User.from_omniauth(auth)
|
||||
|
||||
# User found in database so just signing in
|
||||
|
|
Loading…
Reference in a new issue