oauth2-auth-server 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/oauth2-auth-server.rb +1 -1
- data/lib/oauth2-auth-server/authentication.rb +1 -1
- data/lib/oauth2-auth-server/endpoints/authorize.rb +1 -1
- data/lib/oauth2-auth-server/endpoints/token.rb +1 -1
- data/lib/oauth2-auth-server/models/access_token.rb +2 -2
- data/lib/oauth2-auth-server/models/client.rb +1 -1
- data/lib/oauth2-auth-server/routes.rb +1 -1
- data/lib/oauth2-auth-server/schema.rb +3 -3
- data/lib/oauth2-auth-server/secure_token.rb +1 -1
- data/lib/oauth2-auth-server/version.rb +2 -2
- data/oauth2-auth-server.gemspec +1 -1
- data/spec/oauth2-auth-server_spec.rb +2 -2
- metadata +3 -3
data/lib/oauth2-auth-server.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
module
|
1
|
+
module OAuth2
|
2
2
|
module Auth
|
3
3
|
module Server
|
4
4
|
module Models
|
5
5
|
class AccessToken < ActiveRecord::Base
|
6
6
|
cattr_accessor :default_lifetime
|
7
|
-
self.default_lifetime =
|
7
|
+
self.default_lifetime = OAuth2::Auth::Server.default_lifetime
|
8
8
|
|
9
9
|
belongs_to :client
|
10
10
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'active_record/connection_adapters/abstract/schema_definitions'
|
2
2
|
|
3
|
-
module
|
3
|
+
module OAuth2
|
4
4
|
module Auth
|
5
5
|
module Server
|
6
6
|
module Schema
|
@@ -22,5 +22,5 @@ module Oauth2
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
|
-
ActiveRecord::ConnectionAdapters::Table.send :include,
|
26
|
-
ActiveRecord::ConnectionAdapters::TableDefinition.send :include,
|
25
|
+
ActiveRecord::ConnectionAdapters::Table.send :include, OAuth2::Auth::Server::Schema
|
26
|
+
ActiveRecord::ConnectionAdapters::TableDefinition.send :include, OAuth2::Auth::Server::Schema
|
data/oauth2-auth-server.gemspec
CHANGED
@@ -4,7 +4,7 @@ require "oauth2-auth-server/version"
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "oauth2-auth-server"
|
7
|
-
s.version =
|
7
|
+
s.version = OAuth2::Auth::Server::VERSION
|
8
8
|
s.authors = ["Renato Neves"]
|
9
9
|
s.email = ["renatosn_rg@yahoo.com.br"]
|
10
10
|
s.homepage = ""
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oauth2-auth-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ default_executable:
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rack-oauth2
|
17
|
-
requirement: &
|
17
|
+
requirement: &2165002460 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: 0.14.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2165002460
|
26
26
|
description: An implementation of OAuth2 Authorization Server
|
27
27
|
email:
|
28
28
|
- renatosn_rg@yahoo.com.br
|