omniauth-lexoffice 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3fb6980668efd574546d60cc1f640f34be3c51eaaa22ae78a0ef70104e3ac5a
4
- data.tar.gz: a1163d97a4ce529a4187812b1dd94efde55ec94daa270250efa7d38e82511a14
3
+ metadata.gz: b4b2ce2980f0673be5e02803421d6e6985f2958f26ddd7d3c3776a0d51aea4a4
4
+ data.tar.gz: 1ff7f7046a6230dd062c2b0b75394130d207ae43616624d08ae7af81942c4d6e
5
5
  SHA512:
6
- metadata.gz: 4ee1e4aba556ed6473ff5d7bc48e2e3f62376f6a4b0b5cb5636a02ca412fea1eaa5127f25d10fe9c427a043cb8d3897f07133d833c13f0a7442610744219382b
7
- data.tar.gz: 8cc73fc4ccbffa36a4290e440d42350df2157a680265da6865c10d725aa22a634c68e54203e0f609dcb5de2cc4a98a5c540f4eb8ff0d0a6562ca0ca46511e302
6
+ metadata.gz: dbe1291a0290eea782e01f35fe3e39ef851a04be945146b2d80ef4124260cdc6f6b561c66d748cb7e3f75f9d79c3c4b2fb9dce938de37d15ffe4e4eca9dbc796
7
+ data.tar.gz: c71301546db3e2ce02621adc57b26e2b90ac0e9dd33683b8644e223f13acec150d01ecfce24261f36a2dfb2e945ec60c5acb45286314467b7a84e412851f1765
@@ -7,6 +7,11 @@
7
7
  <content url="file://$MODULE_DIR$" />
8
8
  <orderEntry type="jdk" jdkName="ruby-2.6.6-p146" jdkType="RUBY_SDK" />
9
9
  <orderEntry type="sourceFolder" forTests="false" />
10
- <orderEntry type="library" scope="PROVIDED" name="minitest (v5.11.3, ruby-2.6.6-p146) [gem]" level="application" />
10
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.16.4, ruby-2.6.6-p146) [gem]" level="application" />
11
+ </component>
12
+ <component name="RakeTasksCache">
13
+ <option name="myRootTask">
14
+ <RakeTaskImpl id="rake" />
15
+ </option>
11
16
  </component>
12
17
  </module>
data/.idea/workspace.xml CHANGED
@@ -1,7 +1,10 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
+ <component name="AutoImportSettings">
4
+ <option name="autoReloadType" value="SELECTIVE" />
5
+ </component>
3
6
  <component name="ChangeListManager">
4
- <list default="true" id="8adaf675-8892-48b2-a209-f821a99ce6aa" name="Default" comment="">
7
+ <list default="true" id="8adaf675-8892-48b2-a209-f821a99ce6aa" name="Default" comment="Gem Version 1.3">
5
8
  <change afterPath="$PROJECT_DIR$/.idea/encodings.xml" afterDir="false" />
6
9
  <change afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
7
10
  <change afterPath="$PROJECT_DIR$/.idea/modules.xml" afterDir="false" />
@@ -10,7 +13,6 @@
10
13
  <change afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
11
14
  <change beforePath="$PROJECT_DIR$/lib/omniauth/lexoffice/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/omniauth/lexoffice/version.rb" afterDir="false" />
12
15
  <change beforePath="$PROJECT_DIR$/lib/omniauth/strategies/lexoffice.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/omniauth/strategies/lexoffice.rb" afterDir="false" />
13
- <change beforePath="$PROJECT_DIR$/omniauth-lexoffice.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/omniauth-lexoffice.gemspec" afterDir="false" />
14
16
  </list>
15
17
  <option name="SHOW_DIALOG" value="false" />
16
18
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -39,6 +41,13 @@
39
41
  <detection-done>true</detection-done>
40
42
  <sorting>DEFINITION_ORDER</sorting>
41
43
  </component>
44
+ <component name="MarkdownSettingsMigration">
45
+ <option name="stateVersion" value="1" />
46
+ </component>
47
+ <component name="ProjectColorInfo">{
48
+ &quot;customColor&quot;: &quot;&quot;,
49
+ &quot;associatedIndex&quot;: 1
50
+ }</component>
42
51
  <component name="ProjectFrameBounds" extendedState="6">
43
52
  <option name="x" value="-8" />
44
53
  <option name="y" value="-8" />
@@ -107,10 +116,22 @@
107
116
  <option name="hideEmptyMiddlePackages" value="true" />
108
117
  <option name="showLibraryContents" value="true" />
109
118
  </component>
110
- <component name="PropertiesComponent">
111
- <property name="WebServerToolWindowFactoryState" value="false" />
112
- <property name="settings.editor.selected.configurable" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
113
- </component>
119
+ <component name="PropertiesComponent">{
120
+ &quot;keyToString&quot;: {
121
+ &quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
122
+ &quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
123
+ &quot;git-widget-placeholder&quot;: &quot;master&quot;,
124
+ &quot;last_opened_file_path&quot;: &quot;C:/Workspace/omniauth-lexoffice&quot;,
125
+ &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
126
+ &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
127
+ &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
128
+ &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
129
+ &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
130
+ &quot;ruby.rails.projectView.checked&quot;: &quot;true&quot;,
131
+ &quot;ruby.structure.view.model.defaults.configured&quot;: &quot;true&quot;,
132
+ &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
133
+ }
134
+ }</component>
114
135
  <component name="RunManager">
115
136
  <configuration name="All specs in omniauth-lexoffice: omniauth-lexoffice" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
116
137
  <module name="omniauth-lexoffice" />
@@ -123,7 +144,7 @@
123
144
  <envs>
124
145
  <env name="JRUBY_OPTS" value="-X+O" />
125
146
  </envs>
126
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
147
+ <EXTENSION ID="BundlerRunConfigurationExtension" BUNDLE_MODE="AUTO" bundleExecEnabled="true" />
127
148
  <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
128
149
  <EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov" ENABLE_FORKED_COVERAGE="true" />
129
150
  <EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
@@ -133,6 +154,8 @@
133
154
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
134
155
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
135
156
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
157
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_EXAMPLE_MATCHES" VALUE="false" />
158
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="LINE_NUMBER_EXAMPLE_IDS" VALUE="" />
136
159
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="ALL_IN_FOLDER" />
137
160
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
138
161
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
@@ -150,7 +173,7 @@
150
173
  </recent_temporary>
151
174
  </component>
152
175
  <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
153
- <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
176
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" RAKE_SPRING_PRE_LOADER_OPTION="false" RAILS_SPRING_PRE_LOADER_OPTION="false" />
154
177
  <component name="SvnConfiguration">
155
178
  <configuration />
156
179
  </component>
@@ -177,7 +200,24 @@
177
200
  <workItem from="1550490552473" duration="196000" />
178
201
  <workItem from="1551370828940" duration="506000" />
179
202
  <workItem from="1621238088123" duration="40000" />
180
- <workItem from="1628759552414" duration="713000" />
203
+ <workItem from="1628759552414" duration="1082000" />
204
+ <workItem from="1631107183482" duration="646000" />
205
+ <workItem from="1631176094661" duration="1989000" />
206
+ <workItem from="1679329079533" duration="1168000" />
207
+ <workItem from="1679389718522" duration="629000" />
208
+ <workItem from="1679489968475" duration="177000" />
209
+ <workItem from="1689586382085" duration="4339000" />
210
+ <workItem from="1689673351765" duration="2635000" />
211
+ <workItem from="1689750584562" duration="4134000" />
212
+ <workItem from="1689836490111" duration="4480000" />
213
+ <workItem from="1689923735151" duration="599000" />
214
+ <workItem from="1690215944048" duration="34000" />
215
+ <workItem from="1690268969931" duration="1604000" />
216
+ <workItem from="1690969508298" duration="2567000" />
217
+ <workItem from="1690978918848" duration="604000" />
218
+ <workItem from="1691051191918" duration="2000" />
219
+ <workItem from="1709205023981" duration="1425000" />
220
+ <workItem from="1709277871354" duration="1784000" />
181
221
  </task>
182
222
  <task id="LOCAL-00001" summary="initial commit">
183
223
  <created>1536757055499</created>
@@ -186,7 +226,14 @@
186
226
  <option name="project" value="LOCAL" />
187
227
  <updated>1536757055499</updated>
188
228
  </task>
189
- <option name="localTasksCounter" value="2" />
229
+ <task id="LOCAL-00002" summary="Gem Version 1.3">
230
+ <created>1679329242645</created>
231
+ <option name="number" value="00002" />
232
+ <option name="presentableId" value="LOCAL-00002" />
233
+ <option name="project" value="LOCAL" />
234
+ <updated>1679329242645</updated>
235
+ </task>
236
+ <option name="localTasksCounter" value="3" />
190
237
  <servers />
191
238
  </component>
192
239
  <component name="TestHistory">
@@ -225,9 +272,21 @@
225
272
  <component name="TypeScriptGeneratedFilesManager">
226
273
  <option name="version" value="3" />
227
274
  </component>
275
+ <component name="Vcs.Log.Tabs.Properties">
276
+ <option name="TAB_STATES">
277
+ <map>
278
+ <entry key="MAIN">
279
+ <value>
280
+ <State />
281
+ </value>
282
+ </entry>
283
+ </map>
284
+ </option>
285
+ </component>
228
286
  <component name="VcsManagerConfiguration">
229
287
  <MESSAGE value="initial commit" />
230
- <option name="LAST_COMMIT_MESSAGE" value="initial commit" />
288
+ <MESSAGE value="Gem Version 1.3" />
289
+ <option name="LAST_COMMIT_MESSAGE" value="Gem Version 1.3" />
231
290
  </component>
232
291
  <component name="editorHistoryManager">
233
292
  <entry file="file://$PROJECT_DIR$/Gemfile">
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Lexoffice
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -10,8 +10,8 @@ module OmniAuth
10
10
  # This is where you pass the options you would pass when
11
11
  # initializing your consumer from the OAuth gem.
12
12
  option :client_options, {:site => "https://app.lexoffice.de",
13
- :authorize_url => 'https://app.lexoffice.de/api/oauth2/authorize',
14
- :token_url => 'https://app.lexoffice.de/api/oauth2/token',
13
+ :authorize_url => 'https://app.lexoffice.de/oauth2/authorize',
14
+ :token_url => 'https://app.lexoffice.de/oauth2/token',
15
15
  :response_type => 'code'}
16
16
 
17
17
  #option :iframe, true
@@ -23,20 +23,24 @@ module OmniAuth
23
23
  # or as a URI parameter). This may not be possible with all
24
24
  # providers.
25
25
 
26
-
27
-
28
-
29
-
30
-
31
26
  def setup_phase
32
27
  super
33
28
 
34
29
  end
35
30
 
36
31
  def authorize_params
37
- # params = super
38
- params = {client_id: options.client_id, response_type:'code'}
39
- params.merge!(super)
32
+ super.tap do |params|
33
+ # Prepare the state payload
34
+ state_payload = {
35
+ shop: request.params['shop'],
36
+ host: request.params['host']
37
+ }.to_json
38
+
39
+ # Encode the state payload
40
+ params[:state] = Base64.urlsafe_encode64(state_payload)
41
+ params[:client_id] = options.client_id
42
+ params[:response_type] = 'code'
43
+ end
40
44
  end
41
45
 
42
46
  def token_params
@@ -49,7 +53,6 @@ module OmniAuth
49
53
  end
50
54
 
51
55
  def callback_url
52
- return full_host + script_name + callback_path + "?shop=#{request.params["shop"]}" if request.params["shop"].present?
53
56
  full_host + script_name + callback_path
54
57
  end
55
58
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-lexoffice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Crowder
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-12 00:00:00.000000000 Z
11
+ date: 2024-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -83,7 +83,7 @@ licenses:
83
83
  - MIT
84
84
  metadata:
85
85
  allowed_push_host: https://rubygems.org
86
- post_install_message:
86
+ post_install_message:
87
87
  rdoc_options: []
88
88
  require_paths:
89
89
  - lib
@@ -98,8 +98,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
- rubygems_version: 3.0.3
102
- signing_key:
101
+ rubygems_version: 3.3.26
102
+ signing_key:
103
103
  specification_version: 4
104
104
  summary: OAUTH2 Strategy for Lexoffice
105
105
  test_files: []