jbbarth / redmine_omniauth_cas

CAS authentication plugin for Redmine through OmniAuth
MIT License
19 stars 14 forks source link

Support of on-the-fly registration #4

Closed blackheaven closed 11 years ago

blackheaven commented 11 years ago

Hi,

I need a on-the-fly registration, it seems that you don't have the time to do it, so, can you give me some hints to make it?

Thanks by advance.

jbbarth commented 11 years ago

I'll probably implement it before next summer as I need it too for my instances at work.

This plugin is not a standard redmine auth provider so an on-the-fly registration cannot be done the standard-ish way. It would be pretty simple though : basically when user validates authentication against the CAS server, which is done here, you'd have to create him if no user is found. If you need simple things, this would be ok and it's potentially a one or two line change.

But there are two problems I see:

So it's not that simple but I hope you get the idea. Any pull request with tests would be awesome by the way ;)

blackheaven commented 11 years ago

Thanks for your answer, understand better the problems it can cause, but my situation is simple (the CAS returns the login and all the CAS user should access to REDMINE). I think I would hard code (and make tests), then I'll a pull request then you will be able to put it in a branch and improve it next summer.

Thanks for your answer (and your job).