Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ppid instead of nameid for unique identifier #12

Merged
merged 4 commits into from
May 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Keep VPM internal ID in legacy UIDs as fallback
azelcs committed May 8, 2024
commit 30e6086eee97c79b7c0f699c74a511d964a9b972
3 changes: 2 additions & 1 deletion lib/omniauth/strategies/latvija.rb
Original file line number Diff line number Diff line change
@@ -99,7 +99,8 @@ def legacy_uids
# UIDs that could have been assigned to this identity by previous versions of the gem, or due to peronal identifier change

legacy_uids = [
"#{full_name}, #{raw_info["privatepersonalidentifier"]}" # generated by gem version <= 4.0
"#{full_name}, #{raw_info["privatepersonalidentifier"]}", # generated by gem version <= 4.0
@response.name_identifier # VPM internal UID fallback, generated by gem version <= 6.3.0
]

raw_info.fetch('historical_privatepersonalidentifier', []).each do |historical_identifier|