Skip to content

Add QQ provider #86

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

Open
wants to merge 116 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
e8f10bf
add qq provider
bealking Sep 25, 2017
fd95db0
bug fix
bealking Oct 7, 2017
e2ca095
CI against Ruby 2.2.8/2.3.5/2.4.2
284km Oct 24, 2017
a873231
Merge pull request #88 from 284km/update_travis
kyuden Oct 24, 2017
aaa62a6
Update minimum required Ruby version for Rails 5 (#85)
budmc29 Nov 28, 2017
da32359
Update CHANGELOG.md
Ch4s3 Nov 28, 2017
fc8f128
add new ArgumentError for not defined user_class in config (#82)
X1ting Nov 28, 2017
7672938
Update CHANGELOG.md
Ch4s3 Nov 28, 2017
3206288
Allow user to be loaded from other source when session expires. fix #…
infernalmaster Nov 28, 2017
dc1c34f
Update CHANGELOG.md
Ch4s3 Nov 28, 2017
958d62d
Set user.stretches to 1 in test env by default (#81)
palkan Nov 28, 2017
172659f
Update CHANGELOG.md
Ch4s3 Nov 28, 2017
5f05584
Add tests to the magic login submodule (#95)
ebihara99999 Nov 29, 2017
f8a7c94
Update CHANGELOG.md
Ch4s3 Nov 29, 2017
be614ba
Make `#update_attributes` behavior identical to `#update` (#98)
ebihara99999 Dec 13, 2017
986ebdd
Update CHANGELOG.md
Ch4s3 Dec 13, 2017
a5fdfd2
Update yard dependency to minimum 0.9.12 (#100)
joshbuker Jan 5, 2018
44c5a68
Update CHANGELOG.md
Ch4s3 Jan 5, 2018
6aa57e7
Fix magic_login not inheriting from migration_class_name (#99)
masoo Jan 9, 2018
30fe4fc
Update CHANGELOG.md
joshbuker Jan 9, 2018
996fa61
Add rubocop config and todo (#107)
joshbuker Feb 7, 2018
5862b96
Add required version parameter when requesting user information from …
Hirurg103 Feb 23, 2018
cf469b2
[CI] Test against Ruby 2.5
nicolasleger Mar 12, 2018
341c7ea
Merge pull request #111 from nicolasleger/patch-1
kyuden Mar 12, 2018
82a31d5
Fix issue #40 (#56)
ebihara99999 Apr 12, 2018
d7d468a
Add the request spec helper method, #login_user. (#57)
ebihara99999 Apr 12, 2018
ddb73b5
Update CHANGELOG.md
joshbuker Apr 12, 2018
7b24a92
Update Gem dependencies
joshbuker Apr 12, 2018
ba45f18
Release 0.12.0
joshbuker Apr 23, 2018
8f3cb2d
Rails 5.2 support (#129)
akhiln Jun 20, 2018
cc18629
Guard clause for top-level constant, ActiveRecord (#128)
hkdnet Jun 20, 2018
2fea1d7
Support injecting helpers into ActionController::API (#133)
andrewhood125 Jul 9, 2018
8959f8c
send activation email after the commit in transactional databases (#130)
anaumov Jul 9, 2018
cc7c46f
Add an opt in invalidate_active_sessions! method to session timeout …
fangbyte Jul 9, 2018
ff46dc5
Namespace class method #encrypt. (#77)
ppostma Jul 9, 2018
fcd7140
Revert "Namespace class method #encrypt. (#77)" (#135)
joshbuker Jul 9, 2018
1a3c399
Pass along `remember_me` to `#auto_login` (#136)
bzf Jul 18, 2018
eea7a1c
Register login time for session on login from cookie (#102)
tiii Aug 1, 2018
12ccd64
demodulize added on authentication class name association name fetch …
hugogilmar Sep 20, 2018
f4f08f8
Remove gemnasium badge (#140)
biow0lf Sep 20, 2018
f9e159f
Fix changelog entries (#148)
joshbuker Sep 20, 2018
0e21ede
Add Instagram Provider (#51)
Waynenabors Sep 20, 2018
ee532c1
Remove `publish_actions` permission for facebook (#139)
satoakick Sep 21, 2018
e3045a9
Fix rails injection (#150)
tiii Oct 15, 2018
6c155be
Prepare for 1.0.0 (#157)
joshbuker Nov 8, 2018
ae83ac3
Fix Sorcery::Controller not being correctly included by ActionControl…
joshbuker Nov 20, 2018
11ca7f0
Add Auth0 as external provider (#160)
joshbuker Nov 29, 2018
3a7e351
Update changelog (#161)
joshbuker Nov 29, 2018
88181d3
Release 0.13.0
joshbuker Nov 29, 2018
250fd60
Remove before_install entirely from travis.yml per @BanzaiMan feedbac…
joshbuker Jan 25, 2019
ebb483a
Update migration templates to use new hash syntax (#170)
mladenilic Jan 25, 2019
012172f
update_failed_logins_count is called twice when login failed (#163)
kjosk Mar 16, 2019
a87c069
fix CipherError class name (#142)
ryochin Mar 16, 2019
c668047
Allow load_from_magic_login_token to accept a block (#152)
Fustrate Mar 16, 2019
283f023
Clean up initializer comments (#153)
Mar 16, 2019
fb70165
Add #change_password method to reset_password module. (#165)
SeriouslyAwesome Mar 16, 2019
ae02d2e
allow BCrypt to have app-specific secret token (#173)
fursich Mar 16, 2019
ae4141e
Support the LINE login auth (#80)
Apr 9, 2019
cd6cffd
Update LinkedIn to use OAuth 2 (#189)
May 22, 2019
26ad5a8
Release 0.14.0
joshbuker May 22, 2019
e6b78f1
Allow for custom providers with multi-word class names. (#190)
mvandenbeuken May 28, 2019
f67b989
ignore cookies when undefined cookies (#187)
May 28, 2019
4bda5a8
Fix email scope for LinkedIn Provider (#191)
Jun 16, 2019
5c7933c
Don't :return_to JSON requests after login. (#197)
kevin-smartpatients Jul 2, 2019
8d2d0a5
Use id instead of uid for VK provider (#199)
anaumov Sep 16, 2019
deb8a46
Remove MySQL database creation call (#214)
Nov 27, 2019
dd03140
Add discord provider (#185)
t-tonchim Dec 9, 2019
a973ae4
Add ruby 2.6.5 to the travis build (#215)
mladenilic Dec 9, 2019
26dd64b
Fix deprecation warnings in Rails 6 (#209)
tobyaherbert Dec 19, 2019
16bb809
Fix typo (#219)
mingrammer Dec 30, 2019
f87d14e
In `generic_send_email`, check if mail object responds to delivery me…
Plsr Feb 24, 2020
c30cefa
Add forget_me! and force_forget_me! test cases (#216)
mladenilic Feb 24, 2020
6b72ca3
Revert on_load change due to breaking existing applications (#234)
joshbuker May 1, 2020
0f116d2
Fix brute force vuln due to callbacks not being ran (#235)
joshbuker May 2, 2020
eee5653
Add recent changes to changelog
joshbuker May 2, 2020
e81c64c
Release 0.15.0
joshbuker May 2, 2020
b6f7012
Add pull request template
joshbuker May 2, 2020
6ba63a4
Use Set to ensure unique arrays (#233)
Fustrate May 2, 2020
65065ef
Create SECURITY.md
joshbuker Jun 11, 2020
f2c4fcf
Fix keyword arguments warnings on Ruby 2.7 (#241)
sinsoku Jun 16, 2020
31a055b
Add support for Rails 6 (#238)
sinsoku Jun 16, 2020
1780791
Encourage users to look at the issues page
joshbuker Jun 27, 2020
c5c2cce
Update Chase to past maintainer
joshbuker Jun 27, 2020
28d0884
Update contact details
joshbuker Jun 27, 2020
54ec819
Updated the generators to allow namespaced models to be passed in, su…
crimson-knight Jul 5, 2020
a6cef7e
Support line login v2.1 (#251)
kentarohorie Jul 7, 2020
5d4c2d4
Fix failing isolated tests (#249)
sinsoku Jul 7, 2020
569c35f
Update README.md
joshbuker Jul 15, 2020
a02c124
Add CODE_OF_CONDUCT.md
joshbuker Jul 23, 2020
d16fffa
Add Battlenet Provider (#260)
jojoa Nov 29, 2020
a939ca9
Create ruby.yml
joshbuker Jan 2, 2021
93eff2d
Update rubocop todo
joshbuker Jan 2, 2021
443e614
Remove rubocop from github workflow
joshbuker Jan 2, 2021
43efa33
Release 0.16.0
joshbuker Feb 16, 2021
404862d
Remove InchCI badge - Service no longer available (#272)
chanrute Mar 15, 2021
bf6eb58
Update github action to test against version matrix (#267)
Mar 17, 2021
58ff4ac
Fix default table name being incorrect in migration generator (#274)
linyclar Mar 18, 2021
6fdc703
Update supported versions to include 0.16.X
joshbuker Apr 2, 2021
a26ed98
Update github action to match rework formatting
joshbuker Apr 4, 2021
5d95834
Fix rake not including the rubocop task
joshbuker Apr 4, 2021
0783e42
Remove random whitespace
joshbuker Apr 7, 2021
5fae86f
Goodbye rubocop, see you in v1
joshbuker Apr 7, 2021
40fc1d0
Add sponsor button
joshbuker Apr 24, 2021
5f17be1
Update oauth dependency per CVE-2016-11086
joshbuker Apr 30, 2021
9cc74ea
Release v0.15.1
joshbuker Apr 30, 2021
6164c21
Merge branch '0.15.X'
joshbuker Apr 30, 2021
c460403
Release v0.16.1
joshbuker Apr 30, 2021
107a547
Inline index definition in core migration (#281)
mladenilic Jun 5, 2021
829683b
Add missing remember_me attributes to config (#180)
robinvdvleuten Jun 5, 2021
8f1064f
Update changelog (#283)
mladenilic Jun 9, 2021
4f7ea0b
Fix MongoID adapter breaking on save (#284)
joshbuker Jun 20, 2021
2e2d0fe
add qq provider
bealking Sep 25, 2017
9e466cf
bug fix
bealking Oct 7, 2017
ce38c58
Merge branch 'master' of github.com:bealking/sorcery
bealking Aug 30, 2021
4a7cd0e
solve conflict
bealking Aug 30, 2021
2299885
兼容Rails7的外链跳转保护
bealking Jun 7, 2024
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
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: athix
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Please complete all sections.

### Configuration

- Sorcery Version: ``
- Ruby Version: ``
- Framework: ``
- Platform: ``

### Expected Behavior

Tell us what should happen.

### Actual Behavior

Tell us what happens instead.

### Steps to Reproduce

Please list all steps to reproduce the issue.
5 changes: 5 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Please ensure your pull request includes the following:

- [ ] Description of changes
- [ ] Update to CHANGELOG.md with short description and link to pull request
- [ ] Changes have related RSpec tests that ensure functionality does not break
49 changes: 49 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Test Suite

# Run against all commits and pull requests.
on: [ push, pull_request ]

jobs:
test_matrix:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
ruby:
- 2.4
- 2.5
- 2.6
- 2.7
- 3.0

rails:
- '52'
- '60'

exclude:
- ruby: 2.4
rails: '60'
- ruby: 3.0
rails: '52'

env:
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails }}.gemfile

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake spec

finish:
runs-on: ubuntu-latest
needs: [ test_matrix ]
steps:
- name: Wait for status checks
run: echo "All Green!"
55 changes: 55 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
inherit_from: .rubocop_todo.yml

AllCops:
Exclude:
- 'lib/generators/sorcery/templates/**/*'
TargetRubyVersion: 2.6

# See: https://github.com/rubocop-hq/rubocop/issues/3344
Style/DoubleNegation:
Enabled: false

####################
## Pre-1.0.0 Code ##
####################

Metrics/AbcSize:
Exclude:
- 'lib/**/*'
- 'spec/**/*'
Metrics/BlockLength:
Exclude:
- 'lib/**/*'
- 'spec/**/*'
Layout/LineLength:
Exclude:
- 'lib/**/*'
- 'spec/**/*'
Metrics/ClassLength:
Exclude:
- 'lib/**/*'
- 'spec/**/*'
Metrics/CyclomaticComplexity:
Exclude:
- 'lib/**/*'
- 'spec/**/*'
Metrics/MethodLength:
Exclude:
- 'lib/**/*'
- 'spec/**/*'
Metrics/PerceivedComplexity:
Exclude:
- 'lib/**/*'
- 'spec/**/*'
Naming/AccessorMethodName:
Exclude:
- 'lib/**/*'
- 'spec/**/*'
Naming/PredicateName:
Exclude:
- 'lib/**/*'
- 'spec/**/*'
Style/Documentation:
Exclude:
- 'lib/**/*'
- 'spec/**/*'
163 changes: 163 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2021-04-04 05:00:11 UTC using RuboCop version 0.88.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
# Configuration parameters: Include.
# Include: **/*.gemspec
Gemspec/RequiredRubyVersion:
Exclude:
- 'sorcery.gemspec'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_braces
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent

# Offense count: 83
# Cop supports --auto-correct.
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
# SupportedHashRocketStyles: key, separator, table
# SupportedColonStyles: key, separator, table
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
Layout/HashAlignment:
Enabled: false

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: AllowInHeredoc.
Layout/TrailingWhitespace:
Exclude:
- 'lib/sorcery/controller/submodules/external.rb'

# Offense count: 2
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
Exclude:
- 'spec/rails_app/app/controllers/sorcery_controller.rb'

# Offense count: 1
# Cop supports --auto-correct.
Lint/NonDeterministicRequireOrder:
Exclude:
- 'spec/spec_helper.rb'

# Offense count: 4
# Cop supports --auto-correct.
Lint/RedundantCopDisableDirective:
Exclude:
- 'lib/sorcery/controller.rb'
- 'lib/sorcery/model.rb'
- 'spec/rails_app/config/application.rb'
- 'spec/shared_examples/user_shared_examples.rb'

# Offense count: 4
# Cop supports --auto-correct.
Lint/SendWithMixinArgument:
Exclude:
- 'lib/sorcery.rb'
- 'lib/sorcery/engine.rb'
- 'lib/sorcery/test_helpers/internal/rails.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
Lint/UnusedBlockArgument:
Exclude:
- 'spec/shared_examples/user_shared_examples.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
# SupportedStyles: assign_to_condition, assign_inside_condition
Style/ConditionalAssignment:
Exclude:
- 'lib/sorcery/adapters/active_record_adapter.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/ExpandPathArguments:
Exclude:
- 'spec/rails_app/config.ru'

# Offense count: 1
# Configuration parameters: EnforcedStyle.
# SupportedStyles: annotated, template, unannotated
Style/FormatStringToken:
Exclude:
- 'lib/generators/sorcery/install_generator.rb'

# Offense count: 125
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, always_true, never
Style/FrozenStringLiteralComment:
Enabled: false

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
Style/HashSyntax:
Exclude:
- 'lib/sorcery/adapters/active_record_adapter.rb'
- 'lib/sorcery/test_helpers/rails/integration.rb'

# Offense count: 34
# Cop supports --auto-correct.
Style/IfUnlessModifier:
Enabled: false

# Offense count: 1
# Cop supports --auto-correct.
Style/MultilineIfModifier:
Exclude:
- 'lib/sorcery/providers/line.rb'

# Offense count: 2
# Cop supports --auto-correct.
Style/RedundantBegin:
Exclude:
- 'lib/sorcery/controller.rb'
- 'lib/sorcery/model.rb'

# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
# AllowedMethods: present?, blank?, presence, try, try!
Style/SafeNavigation:
Exclude:
- 'lib/sorcery/controller/config.rb'
- 'lib/sorcery/controller/submodules/brute_force_protection.rb'
- 'lib/sorcery/controller/submodules/remember_me.rb'
- 'lib/sorcery/model.rb'

# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Exclude:
- 'spec/controllers/controller_oauth2_spec.rb'
- 'spec/sorcery_crypto_providers_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, MinSize.
# SupportedStyles: percent, brackets
Style/SymbolArray:
Exclude:
- 'Rakefile'

# Offense count: 2
# Cop supports --auto-correct.
Style/UnpackFirst:
Exclude:
- 'lib/sorcery/crypto_providers/aes256.rb'
- 'spec/sorcery_crypto_providers_spec.rb'
46 changes: 0 additions & 46 deletions .travis.yml

This file was deleted.

Loading