merb-auth-more 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -45,7 +45,8 @@ class Merb::Authentication
45
45
  begin
46
46
  openid_request = consumer.begin(identity_url)
47
47
  openid_reg = ::OpenID::SReg::Request.new
48
- openid_reg.request_fields(required_reg_fields)
48
+ openid_reg.request_fields(required_reg_fields, true)
49
+ openid_reg.request_fields(optional_reg_fields)
49
50
  openid_request.add_extension(openid_reg)
50
51
  customize_openid_request!(openid_request)
51
52
  redirect!(openid_request.redirect_url("#{request.protocol}://#{request.host}", openid_callback_url))
@@ -120,6 +121,12 @@ class Merb::Authentication
120
121
  ['nickname', 'email']
121
122
  end
122
123
 
124
+ #
125
+ # @api overwritable
126
+ def optional_reg_fields
127
+ ['fullname']
128
+ end
129
+
123
130
  # Overwrite this to support an ORM other than DataMapper
124
131
  #
125
132
  # @api overwritable
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-auth-more
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Neighman
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-29 00:00:00 -08:00
12
+ date: 2009-03-18 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.0.9
23
+ version: 1.0.10
24
24
  version:
25
25
  description: Additional resources for use with the merb-auth-core authentication framework.
26
26
  email: has.sox@gmail.com
@@ -61,6 +61,8 @@ files:
61
61
  - spec/spec_helper.rb
62
62
  has_rdoc: true
63
63
  homepage: http://merbivore.com/
64
+ licenses: []
65
+
64
66
  post_install_message:
65
67
  rdoc_options: []
66
68
 
@@ -83,7 +85,7 @@ requirements: []
83
85
  rubyforge_project: merb
84
86
  rubygems_version: 1.3.1
85
87
  signing_key:
86
- specification_version: 2
88
+ specification_version: 3
87
89
  summary: Additional resources for use with the merb-auth-core authentication framework.
88
90
  test_files: []
89
91