|
Revision 529, 441 bytes
(checked in by fumiakiy, 21 months ago)
|
|
Initial checkin of OpenID 2.0 Provider plugin for Movable Type 4.1.
|
| Line | |
|---|
| 1 | package OpenID2Server::Tags; |
|---|
| 2 | use strict; |
|---|
| 3 | |
|---|
| 4 | sub openid_server_url { |
|---|
| 5 | my ($ctx, $args) = @_; |
|---|
| 6 | require MT::Template::Context; |
|---|
| 7 | my $path = MT::Template::Context::_hdlr_admin_cgi_path(@_); |
|---|
| 8 | $path .= $ctx->{config}->AdminScript . '?__mode=openid'; |
|---|
| 9 | $path; |
|---|
| 10 | } |
|---|
| 11 | |
|---|
| 12 | sub openid_header { |
|---|
| 13 | my $path = openid_server_url(@_); |
|---|
| 14 | my $header = qq{<link rel="openid2.provider openid.server" href="$path" />}; |
|---|
| 15 | return $header; |
|---|
| 16 | } |
|---|
| 17 | |
|---|
| 18 | 1; |
|---|
| 19 | __END__ |
|---|
| 20 | |
|---|