Show
Ignore:
Timestamp:
01/31/08 10:58:23 (5 years ago)
Author:
hsbt
Message:

platform/tdiary/plugin/openid.rb: add service for Yahoo and output link tag when only openid2.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/tdiary/plugin/openid.rb

    r5923 r5932  
    3838                        'http://pip.verisignlabs.com/user/<ID>/yadisxrds'), 
    3939                'Yahoo! Japan' => @openid_config.new( 
    40                         ['https://open.login.yahooapis.jp/openid/op/auth', 'https://me.yahoo.co.jp/a/<ID>']), 
     40                        nil, 
     41                        ['https://open.login.yahooapis.jp/openid/op/auth', 'https://me.yahoo.co.jp/a/<ID>'], 
     42                        nil), 
     43                'Yahoo!' => @openid_config.new( 
     44                        nil, 
     45                        ['https://open.login.yahooapis.com/openid/op/auth', 'https://me.yahoo.com/a/<ID>'], 
     46                        nil), 
    4147        } 
    4248 
     
    4450                openid_service = @openid_list[@conf['openid.service']] 
    4551                openid_id = @conf['openid.id'] 
     52                result = '' 
    4653                add_header_proc do 
    47                         result = <<-HTML 
     54                        result = <<-HTML if openid_service.openid 
    4855                        <link rel="openid.server" href="#{h openid_service.openid[0]}"> 
    4956                        <link rel="openid.delegate" href="#{h openid_service.openid[1].sub( /<ID>/, openid_id )}">