-
Notifications
You must be signed in to change notification settings - Fork 57
Internal error when trying to login using SAML #47
Comments
I realised I could add the line
I then find in redmine/log/debug.log this message (where REMOVED are masked values): so... the problem seems to be the part |
Solution found! I am using the urn:uid:... strings which contain dots (.) ! Not sure how to properly fix this, but for now I have just hard-coded the split as follows:
This works! I can now login again. Not sure how to properly adress mappings which have dots in them; perhaps a better way is to use a replacement char other than "." to divide the attribute mapping stings? For example using
and then in
This works for me. Worth modifying? |
Hello,
I am trying to configure Redmine to use this plugin with my university login service.
Environment:
Redmine version 4.0.5.stable
Ruby version 2.5.5-p157 (2019-03-15) [x86_64-linux-gnu]
Rails version 5.2.3
I go to my redmine login page, then click the link to login wih SAML, get to the University server and provide my details, and press enter. Then I get a message on screen like
Investigating I check "/var/log/apache2/error.log" but I only find one relevant line:
App 24371 stdout: I, [2020-01-26T10:45:04.288274 #24371] INFO -- omniauth: (saml) Callback phase initiated.
Looking further in "/opt/redmine/log/debug.log" I see a lot more info (where I have REMOVED some potentially sensitive information):
I suspect this has to do with me configuring my attributes the wrong way (I don't know much about this). Based on the example file I have configured /opt/redmine/config/initializers/saml.rb like this:
Parsing the SAMLResponse (which was REMOVED in the debug.log above) I find these attributes supplied by the login server:
As far as I understand, it seems I get the right information back in the SAML response, but for some reason the plugin doesn't like it. Maybe I have matched the URN strings in the wrong format? Do you have any idea of where the error could be?
I see there has been a similar discussion in #21 (comment) but I could not get my stuff to work using the things in there. As this was from an older version (redmine <4) I thought it may be worth filing a new issue.
Kind regards
Eskil
The text was updated successfully, but these errors were encountered: