-
Notifications
You must be signed in to change notification settings - Fork 167
Add option to include_identity_session_attributes in IdentityLinker #7421
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
Changes from all commits
f795c00
ab88891
ae41cb3
b22be13
82e5390
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,20 @@ | |
| expect(identity_attributes).to include new_attributes | ||
| end | ||
|
|
||
| it 'does not write last_authenticated_at when :include_identity_session_attributes is false' do | ||
| identity = IdentityLinker.new(user, service_provider). | ||
| link_identity(include_identity_session_attributes: false) | ||
|
|
||
| aggregate_failures do | ||
| expect(identity.last_authenticated_at).to be_nil | ||
| expect(identity.session_uuid).to be_nil | ||
| expect(identity.access_token).to be_nil | ||
| expect(identity.last_ial1_authenticated_at).to be_nil | ||
| expect(identity.last_ial2_authenticated_at).to be_nil | ||
| expect(identity.verified_at).to be_nil | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just because my brain has been so focused on
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah I just wanted to make sure that the row was as blank as possible |
||
| end | ||
| end | ||
|
|
||
| it 'can take an additional optional attributes' do | ||
| rails_session_id = SecureRandom.hex | ||
| nonce = SecureRandom.hex | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in hindsight, it's frustrating that these
ial_atcolumns were added to this table, and updated in this way because they make this all kind of complicated