simpleapikeyengine 0.1.2 → 0.1.3
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 351453caab71be2db77ba421cfd82250d593f543
|
4
|
+
data.tar.gz: e4aeae172d09ea52ee369b64e9c24124c7d3af98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12059b7c7793ef16fc2046a2a043c1d4c7721e850fb020f111eb9eca9562a88489d920c9924b376ab52f2567a1fbbe05512f9e27337210f6deed54e3f0ed26ee
|
7
|
+
data.tar.gz: ec43d0eb36caf781be201ee8dced37a49ca9fb03f76b6ce360cd705e9ca592f5fd906107eee8fef99b1a3a3a97370e825dfb4394b77f5bacc2a19009a1d2367a
|
@@ -11,9 +11,9 @@ module SimpleApiKeyEngine
|
|
11
11
|
def activate(request, &block)
|
12
12
|
authentication = auth(request, &block)
|
13
13
|
return nil unless authentication
|
14
|
-
api_keys.create!(provider: authentication.provider,
|
15
|
-
|
16
|
-
|
14
|
+
authentication.api_keys.create!(provider: authentication.provider,
|
15
|
+
user_type: authentication.user_type,
|
16
|
+
user_ident: authentication.user_ident)
|
17
17
|
end
|
18
18
|
|
19
19
|
private
|