oauth_provider_engine 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -24,6 +24,9 @@ module OauthProviderEngine
|
|
24
24
|
class_attribute :admin_layout
|
25
25
|
class_attribute :oauth_layout
|
26
26
|
|
27
|
+
# this setting lets you specify the expiry on an access_token
|
28
|
+
class_attribute :access_token_expiry
|
29
|
+
|
27
30
|
def generate_key(length = 32)
|
28
31
|
Digest::SHA1.hexdigest("--#{Time.now.to_s}--#{rand(1000)}--")[0,length-1]
|
29
32
|
end
|