-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request from GHSA-49r3-2549-3633
Use only verified email address to prevent fake email address
- Loading branch information
Showing
4 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module OmniAuth | ||
module Apple | ||
VERSION = "1.0.0" | ||
VERSION = "1.0.1" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -252,6 +252,21 @@ | |
end | ||
end | ||
|
||
context 'with a spoofed email in the user payload' do | ||
before do | ||
request.params['user'] = { | ||
name: { | ||
firstName: 'first', | ||
lastName: 'last' | ||
}, | ||
email: "[email protected]" | ||
}.to_json | ||
end | ||
|
||
it 'should return the true email' do | ||
expect(subject.info[:email]).to eq('[email protected]') | ||
end | ||
end | ||
end | ||
|
||
describe '#extra' do | ||
|