omniauth-microsoft_v2_auth 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9c1d8edbe804c867920c36315dd79e73713b075b
4
+ data.tar.gz: 63083060958cf8f8e399c6f3a6a4cee704de5ef6
5
+ SHA512:
6
+ metadata.gz: 90e69c1f60649bfd2e6875b066a38d66ad02e7c57889e7d8a298096ac2564a34c6c0a5671a5301d183ba6154d6c58f3040358a21f6537d6e793bb46f3a2d6bfa
7
+ data.tar.gz: f0818c1fa368a57e1b4087c86bb5e87ba6f4c59f1ad3898ae378295d5831514299ed12f2e513c90d95cd9f633fa4f0e06099968acab4278d6920277111f90814
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/omniauth-microsoft_v2_auth.iml" filepath="$PROJECT_DIR$/.idea/omniauth-microsoft_v2_auth.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="JAVA_MODULE" version="4">
3
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+ <exclude-output />
5
+ <content url="file://$MODULE_DIR$" />
6
+ <orderEntry type="inheritedJdk" />
7
+ <orderEntry type="sourceFolder" forTests="false" />
8
+ </component>
9
+ </module>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,324 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="00973e2c-306b-4f3e-a755-10179bf8c0a7" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/omniauth/strategies/microsoft_v2_auth.rb" afterPath="$PROJECT_DIR$/lib/omniauth/strategies/microsoft_v2_auth.rb" />
6
+ </list>
7
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
8
+ <option name="TRACKING_ENABLED" value="true" />
9
+ <option name="SHOW_DIALOG" value="false" />
10
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
11
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
12
+ <option name="LAST_RESOLUTION" value="IGNORE" />
13
+ </component>
14
+ <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
15
+ <component name="FileEditorManager">
16
+ <leaf>
17
+ <file leaf-file-name="microsoft_v2_auth.rb" pinned="false" current-in-tab="true">
18
+ <entry file="file://$PROJECT_DIR$/lib/omniauth/strategies/microsoft_v2_auth.rb">
19
+ <provider selected="true" editor-type-id="text-editor">
20
+ <state relative-caret-position="304">
21
+ <caret line="19" column="42" lean-forward="true" selection-start-line="19" selection-start-column="42" selection-end-line="19" selection-end-column="42" />
22
+ <folding />
23
+ </state>
24
+ </provider>
25
+ </entry>
26
+ </file>
27
+ </leaf>
28
+ </component>
29
+ <component name="Git.Settings">
30
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
31
+ </component>
32
+ <component name="GradleLocalSettings">
33
+ <option name="externalProjectsViewState">
34
+ <projects_view />
35
+ </option>
36
+ </component>
37
+ <component name="IdeDocumentHistory">
38
+ <option name="CHANGED_PATHS">
39
+ <list>
40
+ <option value="$PROJECT_DIR$/lib/omniauth/strategies/microsoft_v2_auth.rb" />
41
+ </list>
42
+ </option>
43
+ </component>
44
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
45
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
46
+ <component name="JsGulpfileManager">
47
+ <detection-done>true</detection-done>
48
+ <sorting>DEFINITION_ORDER</sorting>
49
+ </component>
50
+ <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
51
+ <component name="ProjectFrameBounds">
52
+ <option name="x" value="1920" />
53
+ <option name="y" value="-390" />
54
+ <option name="width" value="2560" />
55
+ <option name="height" value="1440" />
56
+ </component>
57
+ <component name="ProjectView">
58
+ <navigator currentView="ProjectPane" proportions="" version="1">
59
+ <flattenPackages />
60
+ <showMembers />
61
+ <showModules />
62
+ <showLibraryContents />
63
+ <hideEmptyPackages />
64
+ <abbreviatePackageNames />
65
+ <autoscrollToSource />
66
+ <autoscrollFromSource />
67
+ <sortByType />
68
+ <manualOrder />
69
+ <foldersAlwaysOnTop value="true" />
70
+ </navigator>
71
+ <panes>
72
+ <pane id="PackagesPane" />
73
+ <pane id="Scope" />
74
+ <pane id="Scratches" />
75
+ <pane id="ProjectPane">
76
+ <subPane>
77
+ <PATH>
78
+ <PATH_ELEMENT>
79
+ <option name="myItemId" value="omniauth-microsoft_v2_auth" />
80
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
81
+ </PATH_ELEMENT>
82
+ <PATH_ELEMENT>
83
+ <option name="myItemId" value="omniauth-microsoft_v2_auth" />
84
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
85
+ </PATH_ELEMENT>
86
+ </PATH>
87
+ <PATH>
88
+ <PATH_ELEMENT>
89
+ <option name="myItemId" value="omniauth-microsoft_v2_auth" />
90
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
91
+ </PATH_ELEMENT>
92
+ <PATH_ELEMENT>
93
+ <option name="myItemId" value="omniauth-microsoft_v2_auth" />
94
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
95
+ </PATH_ELEMENT>
96
+ <PATH_ELEMENT>
97
+ <option name="myItemId" value="lib" />
98
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
99
+ </PATH_ELEMENT>
100
+ </PATH>
101
+ <PATH>
102
+ <PATH_ELEMENT>
103
+ <option name="myItemId" value="omniauth-microsoft_v2_auth" />
104
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
105
+ </PATH_ELEMENT>
106
+ <PATH_ELEMENT>
107
+ <option name="myItemId" value="omniauth-microsoft_v2_auth" />
108
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
109
+ </PATH_ELEMENT>
110
+ <PATH_ELEMENT>
111
+ <option name="myItemId" value="lib" />
112
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
113
+ </PATH_ELEMENT>
114
+ <PATH_ELEMENT>
115
+ <option name="myItemId" value="omniauth" />
116
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
117
+ </PATH_ELEMENT>
118
+ </PATH>
119
+ <PATH>
120
+ <PATH_ELEMENT>
121
+ <option name="myItemId" value="omniauth-microsoft_v2_auth" />
122
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
123
+ </PATH_ELEMENT>
124
+ <PATH_ELEMENT>
125
+ <option name="myItemId" value="omniauth-microsoft_v2_auth" />
126
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
127
+ </PATH_ELEMENT>
128
+ <PATH_ELEMENT>
129
+ <option name="myItemId" value="lib" />
130
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
131
+ </PATH_ELEMENT>
132
+ <PATH_ELEMENT>
133
+ <option name="myItemId" value="omniauth" />
134
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
135
+ </PATH_ELEMENT>
136
+ <PATH_ELEMENT>
137
+ <option name="myItemId" value="strategies" />
138
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
139
+ </PATH_ELEMENT>
140
+ </PATH>
141
+ </subPane>
142
+ </pane>
143
+ </panes>
144
+ </component>
145
+ <component name="PropertiesComponent">
146
+ <property name="WebServerToolWindowFactoryState" value="false" />
147
+ <property name="aspect.path.notification.shown" value="true" />
148
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
149
+ <property name="ignore_missing_gitignore" value="true" />
150
+ <property name="FullScreen" value="true" />
151
+ </component>
152
+ <component name="RunDashboard">
153
+ <option name="ruleStates">
154
+ <list>
155
+ <RuleState>
156
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
157
+ </RuleState>
158
+ <RuleState>
159
+ <option name="name" value="StatusDashboardGroupingRule" />
160
+ </RuleState>
161
+ </list>
162
+ </option>
163
+ </component>
164
+ <component name="RunManager">
165
+ <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
166
+ <module name="" />
167
+ <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
168
+ <option name="PROGRAM_PARAMETERS" />
169
+ <predefined_log_file id="idea.log" enabled="true" />
170
+ <method />
171
+ </configuration>
172
+ <configuration default="true" type="Applet" factoryName="Applet">
173
+ <option name="HTML_USED" value="false" />
174
+ <option name="WIDTH" value="400" />
175
+ <option name="HEIGHT" value="300" />
176
+ <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
177
+ <module />
178
+ <method />
179
+ </configuration>
180
+ <configuration default="true" type="Application" factoryName="Application">
181
+ <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
182
+ <option name="MAIN_CLASS_NAME" />
183
+ <option name="VM_PARAMETERS" />
184
+ <option name="PROGRAM_PARAMETERS" />
185
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
186
+ <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
187
+ <option name="ALTERNATIVE_JRE_PATH" />
188
+ <option name="ENABLE_SWING_INSPECTOR" value="false" />
189
+ <option name="ENV_VARIABLES" />
190
+ <option name="PASS_PARENT_ENVS" value="true" />
191
+ <module name="" />
192
+ <envs />
193
+ <method />
194
+ </configuration>
195
+ <configuration default="true" type="JUnit" factoryName="JUnit">
196
+ <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
197
+ <module name="" />
198
+ <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
199
+ <option name="ALTERNATIVE_JRE_PATH" />
200
+ <option name="PACKAGE_NAME" />
201
+ <option name="MAIN_CLASS_NAME" />
202
+ <option name="METHOD_NAME" />
203
+ <option name="TEST_OBJECT" value="class" />
204
+ <option name="VM_PARAMETERS" value="-ea" />
205
+ <option name="PARAMETERS" />
206
+ <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
207
+ <option name="ENV_VARIABLES" />
208
+ <option name="PASS_PARENT_ENVS" value="true" />
209
+ <option name="TEST_SEARCH_SCOPE">
210
+ <value defaultName="singleModule" />
211
+ </option>
212
+ <envs />
213
+ <patterns />
214
+ <method />
215
+ </configuration>
216
+ <configuration default="true" type="Remote" factoryName="Remote">
217
+ <option name="USE_SOCKET_TRANSPORT" value="true" />
218
+ <option name="SERVER_MODE" value="false" />
219
+ <option name="SHMEM_ADDRESS" value="javadebug" />
220
+ <option name="HOST" value="localhost" />
221
+ <option name="PORT" value="5005" />
222
+ <method />
223
+ </configuration>
224
+ <configuration default="true" type="TestNG" factoryName="TestNG">
225
+ <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
226
+ <module name="" />
227
+ <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
228
+ <option name="ALTERNATIVE_JRE_PATH" />
229
+ <option name="SUITE_NAME" />
230
+ <option name="PACKAGE_NAME" />
231
+ <option name="MAIN_CLASS_NAME" />
232
+ <option name="METHOD_NAME" />
233
+ <option name="GROUP_NAME" />
234
+ <option name="TEST_OBJECT" value="CLASS" />
235
+ <option name="VM_PARAMETERS" value="-ea" />
236
+ <option name="PARAMETERS" />
237
+ <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
238
+ <option name="OUTPUT_DIRECTORY" />
239
+ <option name="ANNOTATION_TYPE" />
240
+ <option name="ENV_VARIABLES" />
241
+ <option name="PASS_PARENT_ENVS" value="true" />
242
+ <option name="TEST_SEARCH_SCOPE">
243
+ <value defaultName="singleModule" />
244
+ </option>
245
+ <option name="USE_DEFAULT_REPORTERS" value="false" />
246
+ <option name="PROPERTIES_FILE" />
247
+ <envs />
248
+ <properties />
249
+ <listeners />
250
+ <method />
251
+ </configuration>
252
+ </component>
253
+ <component name="ShelveChangesManager" show_recycled="false">
254
+ <option name="remove_strategy" value="false" />
255
+ </component>
256
+ <component name="TaskManager">
257
+ <task active="true" id="Default" summary="Default task">
258
+ <changelist id="00973e2c-306b-4f3e-a755-10179bf8c0a7" name="Default" comment="" />
259
+ <created>1491433478536</created>
260
+ <option name="number" value="Default" />
261
+ <option name="presentableId" value="Default" />
262
+ <updated>1491433478536</updated>
263
+ <workItem from="1491433479998" duration="1172000" />
264
+ </task>
265
+ <servers />
266
+ </component>
267
+ <component name="TimeTrackingManager">
268
+ <option name="totallyTimeSpent" value="1172000" />
269
+ </component>
270
+ <component name="ToolWindowManager">
271
+ <frame x="1920" y="-390" width="2560" height="1440" extended-state="0" />
272
+ <editor active="true" />
273
+ <layout>
274
+ <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
275
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
276
+ <window_info id="Nl-Palette" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
277
+ <window_info id="Palette&#9;" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
278
+ <window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
279
+ <window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
280
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
281
+ <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
282
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
283
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
284
+ <window_info id="Properties" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
285
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
286
+ <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
287
+ <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
288
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24980143" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
289
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
290
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
291
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
292
+ <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
293
+ <window_info id="Theme Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
294
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
295
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
296
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
297
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
298
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
299
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
300
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
301
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
302
+ </layout>
303
+ </component>
304
+ <component name="TypeScriptGeneratedFilesManager">
305
+ <option name="processedProjectFiles" value="true" />
306
+ </component>
307
+ <component name="VcsContentAnnotationSettings">
308
+ <option name="myLimit" value="2678400000" />
309
+ </component>
310
+ <component name="XDebuggerManager">
311
+ <breakpoint-manager />
312
+ <watches-manager />
313
+ </component>
314
+ <component name="editorHistoryManager">
315
+ <entry file="file://$PROJECT_DIR$/lib/omniauth/strategies/microsoft_v2_auth.rb">
316
+ <provider selected="true" editor-type-id="text-editor">
317
+ <state relative-caret-position="304">
318
+ <caret line="19" column="42" lean-forward="true" selection-start-line="19" selection-start-column="42" selection-end-line="19" selection-end-column="42" />
319
+ <folding />
320
+ </state>
321
+ </provider>
322
+ </entry>
323
+ </component>
324
+ </project>
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2
4
+ - jruby
5
+ - rbx-2
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in omniauth-office365.gemspec
4
+ gemspec
@@ -0,0 +1,39 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ omniauth-microsoft_v2_auth (0.1.0)
5
+ omniauth-oauth2
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ faraday (0.9.2)
11
+ multipart-post (>= 1.2, < 3)
12
+ hashie (3.5.7)
13
+ jwt (1.5.4)
14
+ multi_json (1.12.1)
15
+ multi_xml (0.5.5)
16
+ multipart-post (2.0.0)
17
+ oauth2 (1.2.0)
18
+ faraday (>= 0.8, < 0.10)
19
+ jwt (~> 1.0)
20
+ multi_json (~> 1.3)
21
+ multi_xml (~> 0.5)
22
+ rack (>= 1.2, < 3)
23
+ omniauth (1.8.1)
24
+ hashie (>= 3.4.6, < 3.6.0)
25
+ rack (>= 1.6.2, < 3)
26
+ omniauth-oauth2 (1.4.0)
27
+ oauth2 (~> 1.0)
28
+ omniauth (~> 1.2)
29
+ rack (2.0.3)
30
+
31
+ PLATFORMS
32
+ ruby
33
+ x86-mingw32
34
+
35
+ DEPENDENCIES
36
+ omniauth-microsoft_v2_auth!
37
+
38
+ BUNDLED WITH
39
+ 1.15.4
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Bonusly
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,28 @@
1
+ # Omniauth::MicrosoftV2Auth
2
+
3
+ Microsoft V2 OAuth2 Strategy for OmniAuth.
4
+ Can be used to authenticate with Microsoft Services and get a token for the Microsoft Graph Api.
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'omniauth-microsoft_v2_auth'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install omniauth-microsoft_v2_auth
21
+
22
+ ## Usage
23
+
24
+ ```ruby
25
+ Rails.application.config.middleware.use OmniAuth::Builder do
26
+ provider :microsoft_v2_auth, ENV['AZURE_APPLICATION_CLIENT_ID'], ENV['AZURE_APPLICATION_CLIENT_SECRET']
27
+ end
28
+ ```
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1 @@
1
+ require 'omniauth/microsoft_v2_auth'
@@ -0,0 +1,2 @@
1
+ require "omniauth/microsoft_v2_auth/version"
2
+ require "omniauth/strategies/microsoft_v2_auth"
@@ -0,0 +1,5 @@
1
+ module Omniauth
2
+ module MicrosoftV2Auth
3
+ VERSION = "0.1.1"
4
+ end
5
+ end
@@ -0,0 +1,54 @@
1
+ require 'omniauth/strategies/oauth2'
2
+
3
+ module OmniAuth
4
+ module Strategies
5
+ class MicrosoftV2Auth < OmniAuth::Strategies::OAuth2
6
+ option :name, :microsoft_v2_auth
7
+
8
+ DEFAULT_SCOPE = 'openid email profile https://graph.microsoft.com/User.Read'
9
+
10
+ option :client_options, {
11
+ site: 'https://login.microsoftonline.com',
12
+ authorize_url: '/common/oauth2/v2.0/authorize',
13
+ token_url: '/common/oauth2/v2.0/token'
14
+ }
15
+
16
+ option :authorize_options, [:scope]
17
+
18
+ info do
19
+ { :name => "#{raw_info['givenName']} #{raw_info['surname']}",
20
+ :email => raw_info['mail'],
21
+ :first_name => raw_info['givenName'],
22
+ :last_name => raw_info['surname'] }
23
+ end
24
+
25
+ uid { raw_info["id"] }
26
+
27
+ extra do
28
+ {
29
+ 'raw_info' => raw_info
30
+ }
31
+ end
32
+
33
+ def raw_info
34
+ @raw_info ||= access_token.get('https://graph.microsoft.com/v1.0/me').parsed
35
+ end
36
+
37
+ def authorize_params
38
+ super.tap do |params|
39
+ %w[display score auth_type].each do |v|
40
+ if request.params[v]
41
+ params[v.to_sym] = request.params[v]
42
+ end
43
+ end
44
+
45
+ params[:scope] ||= DEFAULT_SCOPE
46
+ end
47
+ end
48
+
49
+ def callback_url
50
+ options[:redirect_uri] || (full_host + script_name + callback_path)
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,21 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'omniauth/microsoft_v2_auth/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "omniauth-microsoft_v2_auth"
8
+ spec.version = Omniauth::MicrosoftV2Auth::VERSION
9
+ spec.authors = ["Caitlin Bales"]
10
+ spec.email = ["c.bales@outlook.com"]
11
+ spec.summary = %q{omniauth provider for Microsoft V2 Authentication}
12
+ spec.description = %q{omniauth provider for Microsoft V2 Authentication}
13
+ spec.homepage = "https://github.com/cbales/omniauth-microsoft_v2_auth"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_runtime_dependency "omniauth-oauth2"
21
+ end
metadata ADDED
@@ -0,0 +1,73 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: omniauth-microsoft_v2_auth
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Caitlin Bales
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-01-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: omniauth-oauth2
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: omniauth provider for Microsoft V2 Authentication
28
+ email:
29
+ - c.bales@outlook.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ".idea/modules.xml"
35
+ - ".idea/omniauth-microsoft_v2_auth.iml"
36
+ - ".idea/vcs.xml"
37
+ - ".idea/workspace.xml"
38
+ - ".travis.yml"
39
+ - Gemfile
40
+ - Gemfile.lock
41
+ - LICENSE
42
+ - README.md
43
+ - Rakefile
44
+ - lib/microsoft_v2_auth.rb
45
+ - lib/omniauth/microsoft_v2_auth.rb
46
+ - lib/omniauth/microsoft_v2_auth/version.rb
47
+ - lib/omniauth/strategies/microsoft_v2_auth.rb
48
+ - omniauth-microsoft_v2_auth.gemspec
49
+ homepage: https://github.com/cbales/omniauth-microsoft_v2_auth
50
+ licenses:
51
+ - MIT
52
+ metadata: {}
53
+ post_install_message:
54
+ rdoc_options: []
55
+ require_paths:
56
+ - lib
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ requirements: []
68
+ rubyforge_project:
69
+ rubygems_version: 2.6.11
70
+ signing_key:
71
+ specification_version: 4
72
+ summary: omniauth provider for Microsoft V2 Authentication
73
+ test_files: []