Skip to content

Instantly share code, notes, and snippets.

@kbighorse
Created December 21, 2017 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbighorse/8663b8bcc9cdf5ea7bff937dae7c9fbe to your computer and use it in GitHub Desktop.
Save kbighorse/8663b8bcc9cdf5ea7bff937dae7c9fbe to your computer and use it in GitHub Desktop.
$ rubocop config/initializers/sorcery.rb
Inspecting 1 file
C
Offenses:
config/initializers/sorcery.rb:2:81: C: Metrics/LineLength: Line is too long. [99/80]
# The default is nothing which will include only core features (password encryption, login/logout).
^^^^^^^^^^^^^^^^^^^
config/initializers/sorcery.rb:4:81: C: Metrics/LineLength: Line is too long. [90/80]
# :reset_password, :session_timeout, :brute_force_protection, :activity_logging, :external
^^^^^^^^^^
config/initializers/sorcery.rb:17:81: C: Metrics/LineLength: Line is too long. [92/80]
# the URL he wanted to reach, and send him there after login, using 'redirect_back_or_to'.
^^^^^^^^^^^^
config/initializers/sorcery.rb:44:81: C: Metrics/LineLength: Line is too long. [92/80]
# What realm to display for which controller name. For example {"My App" => "Application"}
^^^^^^^^^^^^
config/initializers/sorcery.rb:66:81: C: Metrics/LineLength: Line is too long. [140/80]
# What providers are supported by this app, i.e. [:twitter, :facebook, :github, :linkedin, :xing, :google, :liveid, :salesforce, :slack] .
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
config/initializers/sorcery.rb:71:81: C: Metrics/LineLength: Line is too long. [84/80]
# You can change it by your local ca_file. i.e. '/etc/pki/tls/certs/ca-bundle.crt'
^^^^
config/initializers/sorcery.rb:83:89: C: Metrics/LineLength: Line is too long. [89/80]
# config.linkedin.callback_url = "http://0.0.0.0:3000/oauth/callback?provider=linkedin"
^
config/initializers/sorcery.rb:85:81: C: Metrics/LineLength: Line is too long. [88/80]
# config.linkedin.user_info_mapping = {first_name: "firstName", last_name: "lastName"}
^^^^^^^^
config/initializers/sorcery.rb:94:81: C: Metrics/LineLength: Line is too long. [81/80]
# config.xing.callback_url = "http://0.0.0.0:3000/oauth/callback?provider=xing"
^
config/initializers/sorcery.rb:95:81: C: Metrics/LineLength: Line is too long. [86/80]
# config.xing.user_info_mapping = {first_name: "first_name", last_name: "last_name"}
^^^^^^
config/initializers/sorcery.rb:103:87: C: Metrics/LineLength: Line is too long. [87/80]
# config.twitter.callback_url = "http://0.0.0.0:3000/oauth/callback?provider=twitter"
^
config/initializers/sorcery.rb:108:89: C: Metrics/LineLength: Line is too long. [89/80]
# config.facebook.callback_url = "http://0.0.0.0:3000/oauth/callback?provider=facebook"
^
config/initializers/sorcery.rb:117:85: C: Metrics/LineLength: Line is too long. [85/80]
# config.github.callback_url = "http://0.0.0.0:3000/oauth/callback?provider=github"
^
config/initializers/sorcery.rb:123:85: C: Metrics/LineLength: Line is too long. [85/80]
# config.paypal.callback_url = "http://0.0.0.0:3000/oauth/callback?provider=paypal"
^
config/initializers/sorcery.rb:128:85: C: Metrics/LineLength: Line is too long. [85/80]
# config.wechat.callback_url = "http://0.0.0.0:3000/oauth/callback?provider=wechat"
^
config/initializers/sorcery.rb:132:85: C: Metrics/LineLength: Line is too long. [85/80]
# config.google.callback_url = "http://0.0.0.0:3000/oauth/callback?provider=google"
^
config/initializers/sorcery.rb:134:123: C: Metrics/LineLength: Line is too long. [123/80]
# config.google.scope = "https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile"
^
config/initializers/sorcery.rb:136:81: C: Metrics/LineLength: Line is too long. [106/80]
# For Microsoft Graph, the key will be your App ID, and the secret will be your app password/public key.
^^^^^^^^^^^^^^^^^^^^^^^^^^
config/initializers/sorcery.rb:137:81: C: Metrics/LineLength: Line is too long. [205/80]
# The callback URL "can't contain a query string or invalid special characters", see: https://docs.microsoft.com/en-us/azure/active-directory/active-directory-v2-limitations#restrictions-on-redirect-uris
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
config/initializers/sorcery.rb:142:82: C: Metrics/LineLength: Line is too long. [82/80]
# config.microsoft.callback_url = "http://0.0.0.0:3000/oauth/callback/microsoft"
^
config/initializers/sorcery.rb:143:81: C: Metrics/LineLength: Line is too long. [100/80]
# config.microsoft.user_info_mapping = {:email => "userPrincipalName", :username => "displayName"}
^^^^^^^^^^^^^^^^^^^^
config/initializers/sorcery.rb:144:81: C: Metrics/LineLength: Line is too long. [81/80]
# config.microsoft.scope = "openid email https://graph.microsoft.com/User.Read"
^
config/initializers/sorcery.rb:151:83: C: Metrics/LineLength: Line is too long. [83/80]
# config.slack.callback_url = "http://0.0.0.0:3000/oauth/callback?provider=slack"
^
config/initializers/sorcery.rb:162:90: C: Metrics/LineLength: Line is too long. [90/80]
# config.liveid.callback_url = "http://mydomain.com:3000/oauth/callback?provider=liveid"
^
config/initializers/sorcery.rb:167:81: C: Metrics/LineLength: Line is too long. [118/80]
# to obtain the consumer key and the public key you can use the jira-ruby gem https://github.com/sumoheavy/jira-ruby
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
config/initializers/sorcery.rb:168:81: C: Metrics/LineLength: Line is too long. [119/80]
# or run openssl req -x509 -nodes -newkey rsa:1024 -sha1 -keyout rsakey.pem -out rsacert.pem to obtain the public key
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
config/initializers/sorcery.rb:180:81: C: Metrics/LineLength: Line is too long. [101/80]
# Salesforce callback_url must be https. You can run the following to generate self-signed ssl cert
^^^^^^^^^^^^^^^^^^^^^
config/initializers/sorcery.rb:181:81: C: Metrics/LineLength: Line is too long. [101/80]
# openssl req -new -newkey rsa:2048 -sha1 -days 365 -nodes -x509 -keyout server.key -out server.crt
^^^^^^^^^^^^^^^^^^^^^
config/initializers/sorcery.rb:185:96: C: Metrics/LineLength: Line is too long. [96/80]
# config.salesforce.callback_url = "https://127.0.0.1:9292/oauth/callback?provider=salesforce"
^
config/initializers/sorcery.rb:197:81: C: Metrics/LineLength: Line is too long. [101/80]
# change *virtual* password attribute, the one which is used until an encrypted one is generated.
^^^^^^^^^^^^^^^^^^^^^
config/initializers/sorcery.rb:233:81: C: Metrics/LineLength: Line is too long. [98/80]
# WARNING: If used for users' passwords, changing this key will leave passwords undecryptable!
^^^^^^^^^^^^^^^^^^
config/initializers/sorcery.rb:243:81: C: Metrics/LineLength: Line is too long. [83/80]
# encryption algorithm name. See 'encryption_algorithm=' for available options.
^^^
config/initializers/sorcery.rb:248:81: C: Metrics/LineLength: Line is too long. [88/80]
# make this configuration inheritable for subclasses. Useful for ActiveRecord's STI.
^^^^^^^^
config/initializers/sorcery.rb:260:81: C: Metrics/LineLength: Line is too long. [82/80]
# logins/logouts (supporting remembering on multiple browsers simultaneously).
^^
config/initializers/sorcery.rb:281:81: C: Metrics/LineLength: Line is too long. [81/80]
# how many seconds before the activation code expires. nil for never expires.
^
config/initializers/sorcery.rb:300:81: C: Metrics/LineLength: Line is too long. [82/80]
# Default: :deliver (Rails version < 4.2) or :deliver_now (Rails version 4.2+)
^^
config/initializers/sorcery.rb:314:81: C: Metrics/LineLength: Line is too long. [84/80]
# do you want to prevent or allow users that did not activate by email to login?
^^^^
config/initializers/sorcery.rb:357:81: C: Metrics/LineLength: Line is too long. [97/80]
# hammering protection, how long in seconds to wait before allowing another email to be sent.
^^^^^^^^^^^^^^^^^
config/initializers/sorcery.rb:368:81: C: Metrics/LineLength: Line is too long. [83/80]
# This field indicates whether user is banned and when it will be active again.
^^^
1 file inspected, 39 offenses detected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment