omniauth-lexoffice 0.1.4 → 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: d19fb36403ac63603307a5f42add735b8123a8d583ab92a05ac6c23e47c51e96
4
- data.tar.gz: 0300645d720007c67d38f5900af31396971e12967d1ed8c2acff84a16b5db71f
3
+ metadata.gz: b4b2ce2980f0673be5e02803421d6e6985f2958f26ddd7d3c3776a0d51aea4a4
4
+ data.tar.gz: 1ff7f7046a6230dd062c2b0b75394130d207ae43616624d08ae7af81942c4d6e
5
5
  SHA512:
6
- metadata.gz: b1e9a87b5cb4eda1173f00dbc318addd705ca95f07f58df79e951470300aa7087ff6749f8d579d719de016457cc1bf59cba408fa9003814eb67c760358cc4e17
7
- data.tar.gz: 806521c043b3750d404571e23de4ca5d865db246e67197e7060029c25aed8ed0910a3ca80424ade697b055880d0a7a6b70537ccfada740961139eb52fe60d274
6
+ metadata.gz: dbe1291a0290eea782e01f35fe3e39ef851a04be945146b2d80ef4124260cdc6f6b561c66d748cb7e3f75f9d79c3c4b2fb9dce938de37d15ffe4e4eca9dbc796
7
+ data.tar.gz: c71301546db3e2ce02621adc57b26e2b90ac0e9dd33683b8644e223f13acec150d01ecfce24261f36a2dfb2e945ec60c5acb45286314467b7a84e412851f1765
data/.idea/workspace.xml CHANGED
@@ -44,6 +44,10 @@
44
44
  <component name="MarkdownSettingsMigration">
45
45
  <option name="stateVersion" value="1" />
46
46
  </component>
47
+ <component name="ProjectColorInfo">{
48
+ &quot;customColor&quot;: &quot;&quot;,
49
+ &quot;associatedIndex&quot;: 1
50
+ }</component>
47
51
  <component name="ProjectFrameBounds" extendedState="6">
48
52
  <option name="x" value="-8" />
49
53
  <option name="y" value="-8" />
@@ -114,13 +118,17 @@
114
118
  </component>
115
119
  <component name="PropertiesComponent">{
116
120
  &quot;keyToString&quot;: {
121
+ &quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
117
122
  &quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
118
123
  &quot;git-widget-placeholder&quot;: &quot;master&quot;,
124
+ &quot;last_opened_file_path&quot;: &quot;C:/Workspace/omniauth-lexoffice&quot;,
119
125
  &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
120
126
  &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
121
127
  &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
122
128
  &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
129
+ &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
123
130
  &quot;ruby.rails.projectView.checked&quot;: &quot;true&quot;,
131
+ &quot;ruby.structure.view.model.defaults.configured&quot;: &quot;true&quot;,
124
132
  &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
125
133
  }
126
134
  }</component>
@@ -146,6 +154,7 @@
146
154
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
147
155
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
148
156
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
157
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_EXAMPLE_MATCHES" VALUE="false" />
149
158
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="LINE_NUMBER_EXAMPLE_IDS" VALUE="" />
150
159
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="ALL_IN_FOLDER" />
151
160
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
@@ -199,7 +208,16 @@
199
208
  <workItem from="1679489968475" duration="177000" />
200
209
  <workItem from="1689586382085" duration="4339000" />
201
210
  <workItem from="1689673351765" duration="2635000" />
202
- <workItem from="1689750584562" duration="3370000" />
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" />
203
221
  </task>
204
222
  <task id="LOCAL-00001" summary="initial commit">
205
223
  <created>1536757055499</created>
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Lexoffice
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -29,9 +29,18 @@ module OmniAuth
29
29
  end
30
30
 
31
31
  def authorize_params
32
- # params = super
33
- params = {client_id: options.client_id, response_type:'code'}
34
- 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
35
44
  end
36
45
 
37
46
  def token_params
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
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Crowder
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-19 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
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
- rubygems_version: 3.3.7
101
+ rubygems_version: 3.3.26
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: OAUTH2 Strategy for Lexoffice