Bring your pull request up-to-date.

The commit cb4afa9cd67deccd26efb532ed0cff893c6cd525 makes it possible to set setting authorize_login_delegation_auth_source_user_autocreate to autopopulate users but it also addresses the looping problem I mentioned in https://github.com/adelton/foreman/pull/1#issuecomment-26566848.

I believe your commit (diff from 8f6ad8a8b3ec2091195cfdcd8a1b7f865a6afd3f to 2bb84524822fe9bd04c466c82b44f5db44108361 squashed into one, unless you want to separate the extlogin and extlogout part like I had it) should go first, and then something like cb4afa9cd67deccd26efb532ed0cff893c6cd525 to avoid too many changes in one step.

Of course, I can do that as a complete rebase of pull request https://github.com/theforeman/foreman/pull/958 myself, once we agree that this is the direction the changes should take.