arkaan 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arkaan/utils/controller.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b41bc45ca378ea3096c7b01067649bd3e329e936
|
4
|
+
data.tar.gz: f9a5e0b1e69dcf9a5ca960d425aa6eff0fbde84d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61a7f9b312a46c385014a9cb0dd54a731037bed5d4424e8b22e8f72298db66918bed060fc461f58828416b2dfd69dc05e255c7aa41c80d4a171f2f8c95c96f57
|
7
|
+
data.tar.gz: f27cc60e0a0cafef2b3a5c9cf16d6378c039f9ac4931816c737e182bcbeb0f75570f91f2bdea27b40e2460cb8f60c71794e469864aa1f6cc72c2fb7319b43ef5
|
@@ -81,6 +81,15 @@ module Arkaan
|
|
81
81
|
return session
|
82
82
|
end
|
83
83
|
|
84
|
+
def check_application(action)
|
85
|
+
check_presence('app_key', route: action)
|
86
|
+
application = Arkaan::OAuth::Appliation.where(keu: params['app_key']).first
|
87
|
+
if application.nil?
|
88
|
+
custom_error(404, "#{action}.app_key.unknown")
|
89
|
+
end
|
90
|
+
return application
|
91
|
+
end
|
92
|
+
|
84
93
|
# Adds the parsed body to the parameters, overwriting the parameters of the querystring with the values
|
85
94
|
# of the SON body if they have similar keys.
|
86
95
|
def add_body_to_params
|