Not a developer? Go to MovableType.com

Plugin and Theme Directory

Central Authentication Service v1.2

By Byrne Reese
Posted April 16, 2013, in Developer.

Details

Configuration

You need to specify the following three configuration directives in your mt-config.cgi.

ExternalUserManagement

Must be set to 1

AuthenticationModule

Must be “CAS”

AuthLoginURL

The URL where CAS is located. Do not include the “/login” part. For example, it should be like http://localhost:8080/cas for the default installation of CAS server.

AuthLogoutURL

The URL where a user can logout from CAS. Do include the “/logout” part. For example, it should be like http://localhost:8080/cas/logout for the default installation of CAS server.

SingleCommunity 1

This last setting is needed to SSO login across multiple blogs

Additionally, if your network does not allow outbound HTTP request from inside Movable Type application, you will be required to add the MT_CAS_ValidationURL configuration directive.

MT_CAS_ValidationURL

The URL of the server which offers validation service (usually the same server you specify to AuthLoginURL). Do not include “/serviceValidate” part. For example it should read like http://localhost:8080 (no trailing slash). Default value is undefined. If not specified, AuthLoginURL will be used to validate session ticket.

Example

CGIPath http://sixapart.jp/mt/

ObjectDriver DBI::mysql
Database mt
DBUser user
DBPassword password

AuthenticationModule CAS
AuthLoginURL http://localhost:8080/cas
AuthLogoutURL http://localhost:8080/cas/logout
MT_CAS_ValidationURL http://server_name_inside_firewall:8080

# Or if you use SSL
#AuthLoginURL https://localhost:8443/cas
#AuthLogoutURL https://localhost:8443/cas/logout
#MT_CAS_ValidationURL https://server_name_inside_firewall:8443

Editing JavaScript Template

The consumer side of the login process works as below. In order for the browser to navigate to the correct address, users may need to edit JavaScript (or GlobalJavaScript, depending on what template sets they use) template to specify the login URL of MT used in second step.

  • User clicks “Sign In” link on the blog entry to comment.
  • MT accepts the request first, and redirect to CAS login URL.
  • User logs in to CAS.
  • CAS redirects back to the original blog entry.

If you use the plugin with Community Blog or Community Forum template set, or to be more precise, if you use the plugin with GlobalJavascript global template, You have to modify the template in a line.

Find mtSignIn function, and modify the line below:

var url = '<$mt:CGIPath$><$mt:CommunityScript>?__mode=login&blog_id=<$mt:BlogID$>';

… to below:

var url = '<$mt:CGIPath$><$mt:CommunityScript>?__mode=cas_login&blog_id=<$mt:BlogID$>';

… so it will request __mode=cas_login instead of __mode=login.

If you use the plugin with either Classic Blog or Professional Website template set, you don’t have to modify JavaScript template.

License

MIT


Back

15 Comments

David Tedrow

David Tedrow on September 1, 2016, 11:43 a.m. Reply

Can I build in another blog to term paper writing service website with the help of this source? Need some help here.

Daniela Hancock

Daniela Hancock on May 25, 2017, 1:56 p.m. Reply

Why would you want to add this to another blog platform? MT has everything you need. While I suppose that the MIT license means you can in theory use it anywhere as long as you credit Byrne it is better to just use it for MT. I have been using it to manage users who create custom labels for weddings and I haven’t had any trouble with it.

binasa

binasa on July 14, 2017, 3:09 a.m. Reply

Displays multiple locations when bound to list data sources. http://downloadfreefilesfast.webcam You simply press the number button that is displayed in the center of the screen.

binasa

binasa on August 16, 2017, 11:40 p.m. Reply

Restart your iPhone/iPod Touch for best performance! http://joyplays.ru The King died fighting these gruesome creatures that are swarming the countryside.

binasa

binasa on August 17, 2017, 6:28 p.m. Reply

It may take a few seconds or more to produce your panorama depending on how many requests are in the queue. http://ivanovogobelen.ru Boolean operations to combine simple shapes into complex shapes.

binasa

binasa on October 26, 2017, 10:32 a.m. Reply

Create notes for each verse and assign bookmarks to them. topdownloadfiles.xyz Execution: Learn to get the most out of your day, check off tasks, and stay on top of your work.

james

james on March 3, 2018, 9:56 a.m. Reply

Wow, it’s really hard. But I got at least a half of everything you wrote. When I had a lesson about this theme in college, I went out with my head completely empty. I start to think that the programing education is not for me. vape shop map

William George

William George on April 12, 2018, 10:59 a.m. Reply

The CAS convention includes no less than three gatherings: a customer web program, the web application asking for confirmation, and the CAS server. It might likewise include a back-end benefit, for example, a database server, that does not have its own HTTP interface but rather speaks with a web application. CAS is an open and very much reported validation convention. The essential execution of the convention is an open-source Java server segment of a similar name facilitated here, with help for a plenty of extra validation essay writing service conventions and highlights.

kabbage

kabbage on July 30, 2018, 4:57 p.m. Reply

Hey I think your post is really well written. Thanks for sharing and keep up the good work. I used to run this community forum plug in on my site www.greencardlegal.com However someone else bought the domain now.

James Lara

James Lara on September 22, 2018, 8:20 a.m. Reply

You write a great great article about business and giving great website for help in every business thank you.Thanks Subway Surfers Download

hendry

hendry on October 27, 2018, 2:27 p.m. Reply

Her describing the central authentication service V1.2 the details and its configuration is mentioned we can examine it clearly for further information here an example is mentioned. The editing jave script is mentioned for the consumer side of the login process.Continue Reading

mishirajput

mishirajput on November 18, 2018, 10:40 a.m. Reply

Thanks for sharing the post.. parents are worlds best person in each lives of individual..they need or must succeed to sustain needs of the family. 안전놀이터">https://www.jikimwin.com”>안전놀이터

dibiya

dibiya on December 12, 2018, 2:33 p.m. Reply

Recently I have seen the post and I came to know about the Central Authentication Service v1.2 Plugin. I have gone through your post but I did not get any informative contents from your post. It seems to be null. Try to add some more uses and benefits of the plugin. What are the features of the Central Authentication Service v1.2 Plugin? Update your post. California Injury Lawyer

Leave a Comment

Byrne Reese

Byrne Reese was previously the Product Manager of Movable Type at Six Apart, where he had also held positions as the Manager of Platform Technology and Product Manager for TypePad. Byrne is a huge supporter of the Movable Type user and developer community. He dedicates much of his time to promoting and educating people about Movable Type as well as building the tools and plugins for Movable Type that are showcased on Majordojo. He contributes regularly to open source; and he is an advocate for open protocols and standards like Atom and OpenID.

Website: http://profile.typekey.com/byrnereese