Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Authenticator? Check $_SERVER['REMOTE_USER]' ?


Go to End


1112 Views

Avatar
forumq42

Community Member, 18 Posts

22 October 2014 at 12:02pm

I was wondering if possible/how easy/difficult it would be to somehow make use of the Authenticator class on a SS 2.4 site to make a 'custom authenticator' to essentially check the Apache server variable remote user $_SERVER('REMOTE_USER') that would get set by various authentication mechanisms such as Shibboleth via the *Apache* Shibboleth module rather than a custom module for SilverStripe.

In my case, this only gets set if Apache knows the user is authenticated against Shibboleth already.

If the user already exists in the SilverStripe user table how would one go about making this one of the login options when navigating to https://mysite.com/admin ?

Does anyone happen to know a clear example or tutorial on setting up alternative authentication mechanisms with SilverStripe ?

Thanks for any suggestions.