Class: Rack::OAuth2::Server::Resource::MAC::Request
- Inherits:
-
Request
- Object
- Request
- Request
- Rack::OAuth2::Server::Resource::MAC::Request
- Defined in:
- lib/rack/oauth2/server/resource/mac.rb
Instance Attribute Summary (collapse)
-
- (Object) ext
readonly
Returns the value of attribute ext.
-
- (Object) nonce
readonly
Returns the value of attribute nonce.
-
- (Object) signature
readonly
Returns the value of attribute signature.
-
- (Object) ts
readonly
Returns the value of attribute ts.
Attributes inherited from Request
Instance Method Summary (collapse)
Methods inherited from Request
Constructor Details
This class inherits a constructor from Rack::OAuth2::Server::Resource::Request
Instance Attribute Details
- (Object) ext (readonly)
Returns the value of attribute ext
14 15 16 |
# File 'lib/rack/oauth2/server/resource/mac.rb', line 14 def ext @ext end |
- (Object) nonce (readonly)
Returns the value of attribute nonce
14 15 16 |
# File 'lib/rack/oauth2/server/resource/mac.rb', line 14 def nonce @nonce end |
- (Object) signature (readonly)
Returns the value of attribute signature
14 15 16 |
# File 'lib/rack/oauth2/server/resource/mac.rb', line 14 def signature @signature end |
- (Object) ts (readonly)
Returns the value of attribute ts
14 15 16 |
# File 'lib/rack/oauth2/server/resource/mac.rb', line 14 def ts @ts end |
Instance Method Details
- (Boolean) oauth2?
26 27 28 |
# File 'lib/rack/oauth2/server/resource/mac.rb', line 26 def oauth2? @auth_header.provided? && @auth_header.scheme.to_s == 'mac' end |
- (Object) setup!
16 17 18 19 20 21 22 23 24 |
# File 'lib/rack/oauth2/server/resource/mac.rb', line 16 def setup! auth_params = Rack::Auth::Digest::Params.parse(@auth_header.params).with_indifferent_access @access_token = auth_params[:id] @nonce = auth_params[:nonce] @ts = auth_params[:ts] @ext = auth_params[:ext] @signature = auth_params[:mac] self end |