omniauth-lexoffice 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.idea/omniauth-lexoffice.iml +6 -1
- data/.idea/workspace.xml +70 -11
- data/lib/omniauth/lexoffice/version.rb +1 -1
- data/lib/omniauth/strategies/lexoffice.rb +14 -11
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b4b2ce2980f0673be5e02803421d6e6985f2958f26ddd7d3c3776a0d51aea4a4
|
|
4
|
+
data.tar.gz: 1ff7f7046a6230dd062c2b0b75394130d207ae43616624d08ae7af81942c4d6e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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="
|
|
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
|
+
"customColor": "",
|
|
49
|
+
"associatedIndex": 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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
119
|
+
<component name="PropertiesComponent">{
|
|
120
|
+
"keyToString": {
|
|
121
|
+
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
|
122
|
+
"WebServerToolWindowFactoryState": "false",
|
|
123
|
+
"git-widget-placeholder": "master",
|
|
124
|
+
"last_opened_file_path": "C:/Workspace/omniauth-lexoffice",
|
|
125
|
+
"node.js.detected.package.eslint": "true",
|
|
126
|
+
"node.js.detected.package.tslint": "true",
|
|
127
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
128
|
+
"node.js.selected.package.tslint": "(autodetect)",
|
|
129
|
+
"nodejs_package_manager_path": "npm",
|
|
130
|
+
"ruby.rails.projectView.checked": "true",
|
|
131
|
+
"ruby.structure.view.model.defaults.configured": "true",
|
|
132
|
+
"vue.rearranger.settings.migration": "true"
|
|
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="
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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">
|
|
@@ -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/
|
|
14
|
-
:token_url => 'https://app.lexoffice.de/
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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.
|
|
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:
|
|
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.
|
|
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: []
|