diff options
author | Adam Jacob <adam@opscode.com> | 2009-10-29 16:58:51 -0700 |
---|---|---|
committer | Adam Jacob <adam@opscode.com> | 2009-10-29 16:58:51 -0700 |
commit | b5074922bfc716b681abb7d0bd122eea8190d005 (patch) | |
tree | e8f819bdb54215b0fa727fb43111d0dafc0b31a2 | |
parent | 0da38ff7dcbf95e6527a5a7c25408b757f584f2d (diff) | |
download | mixlib-authentication-b5074922bfc716b681abb7d0bd122eea8190d005.tar.gz |
Updating the NOTICE file, adding apache headerproductionalpha_deploy_1
-rw-r--r-- | NOTICE | 22 | ||||
-rw-r--r-- | README.rdoc | 64 | ||||
-rw-r--r-- | lib/mixlib/authentication.rb | 18 | ||||
-rw-r--r-- | lib/mixlib/authentication/digester.rb | 18 | ||||
-rw-r--r-- | lib/mixlib/authentication/signatureverification.rb | 18 | ||||
-rw-r--r-- | lib/mixlib/authentication/signedheaderauth.rb | 18 |
6 files changed, 96 insertions, 62 deletions
@@ -1,27 +1,7 @@ -Mixin::Config NOTICE +Mixlib::Authentication NOTICE ================= Developed at Opscode (http://www.opscode.com). * Copyright 2009, Opscode, Inc. <legal@opscode.com> -Mixin::Config incorporates code from Chef. The Chef notice file follows: - -Chef NOTICE -=========== - -Developed at Opscode (http://www.opscode.com). - -Contributors and Copyright holders: - - * Copyright 2008, Adam Jacob <adam@opscode.com> - * Copyright 2008, Arjuna Christensen <aj@hjksolutions.com> - * Copyright 2008, Bryan McLellan <btm@loftninjas.org> - * Copyright 2008, Ezra Zygmuntowicz <ezra@engineyard.com> - * Copyright 2009, Sean Cribbs <seancribbs@gmail.com> - * Copyright 2009, Christopher Brown <cb@opscode.com> - * Copyright 2009, Thom May <thom@clearairturbulence.org> - -Chef incorporates code modified from Open4 (http://www.codeforpeople.com/lib/ruby/open4/), which was written by Ara T. Howard. - -Chef incorporates code modified from Merb (http://www.merbivore.com), which is Copyright (c) 2008 Engine Yard. diff --git a/README.rdoc b/README.rdoc index c56ffbf..e475ea1 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,41 +1,23 @@ -== Mixlib::Auth - -Mixlib::Auth provides a class-based header signing authentication object, like the one used in Chef. To use in your project: - - require 'rubygems' - require 'mixlib/config' - - class MyConfig - extend(Mixlib::Config) - configure do |c| - c[:first_value] = 'something' - c[:other_value] = 'something_else' - end - end - -Or... - - class MyConfig - extend(Mixlib::Config) - - first_value 'something' - other_value 'something_else' - end - -To check a configuration variable: - - MyConfig.first_value # returns 'something' - MyConfig[:first_value] # returns 'something' - -To change a configuration variable at runtime: - - MyConfig.first_value('foobar') # sets first_value to 'foobar' - MyConfig[:first_value] = 'foobar' # sets first_value to 'foobar' - -You should populate your class with the default values for every configuration variable that might be accessed. If you try and access a variable that does not exist, Mixlib::Config will throw an <ArgumentError>. - -To load a ruby configuration file (which will evaluate in the context of your configuration class): - - MyConfig.from_file('your_config_file.rb') - -Enjoy! +== Mixlib::Authentication + +Mixlib::Authentication provides a class-based header signing authentication object, like the one used in Chef. + +== License + +Author:: Christopher Brown (<cb@opscode.com>) +Copyright:: Copyright (c) 2009 Opscode, Inc. +License:: Apache License, Version 2.0 + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + + diff --git a/lib/mixlib/authentication.rb b/lib/mixlib/authentication.rb index 64e3ca9..cbc7e2c 100644 --- a/lib/mixlib/authentication.rb +++ b/lib/mixlib/authentication.rb @@ -1,3 +1,21 @@ +# +# Author:: Christopher Brown (<cb@opscode.com>) +# Copyright:: Copyright (c) 2009 Opscode, Inc. +# License:: Apache License, Version 2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + require 'mixlib/log' module Mixlib diff --git a/lib/mixlib/authentication/digester.rb b/lib/mixlib/authentication/digester.rb index 185532f..f3a3597 100644 --- a/lib/mixlib/authentication/digester.rb +++ b/lib/mixlib/authentication/digester.rb @@ -1,3 +1,21 @@ +# +# Author:: Christopher Brown (<cb@opscode.com>) +# Copyright:: Copyright (c) 2009 Opscode, Inc. +# License:: Apache License, Version 2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + require 'mixlib/authentication' module Mixlib diff --git a/lib/mixlib/authentication/signatureverification.rb b/lib/mixlib/authentication/signatureverification.rb index ca65c21..73a2309 100644 --- a/lib/mixlib/authentication/signatureverification.rb +++ b/lib/mixlib/authentication/signatureverification.rb @@ -1,3 +1,21 @@ +# +# Author:: Christopher Brown (<cb@opscode.com>) +# Copyright:: Copyright (c) 2009 Opscode, Inc. +# License:: Apache License, Version 2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + require 'ostruct' require 'net/http' require 'mixlib/authentication' diff --git a/lib/mixlib/authentication/signedheaderauth.rb b/lib/mixlib/authentication/signedheaderauth.rb index 00f6da9..87c596a 100644 --- a/lib/mixlib/authentication/signedheaderauth.rb +++ b/lib/mixlib/authentication/signedheaderauth.rb @@ -1,3 +1,21 @@ +# +# Author:: Christopher Brown (<cb@opscode.com>) +# Copyright:: Copyright (c) 2009 Opscode, Inc. +# License:: Apache License, Version 2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + require 'time' require 'base64' require 'ostruct' |