Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Azure AD Config #33

Open
mnash04 opened this issue Oct 5, 2017 · 2 comments
Open

Azure AD Config #33

mnash04 opened this issue Oct 5, 2017 · 2 comments

Comments

@mnash04
Copy link

mnash04 commented Oct 5, 2017

Anyone have a working saml-initializers.rb config for azure AD?

So far just getting this with the default config:
" Invalid user or password. You may want to close SSO session before trying an other username. "

Suspect I just have to pull and map the right attributes but I'm not sure.
Current SAML token attributes are: givenname, surname, emailaddress, name

@nplatonov81
Copy link

It is possible, but changes in code required. Token attribute names come from Azure in form of URI. But redmine_omniauth_saml.rb at line 67 splits config line by dots and break this URI if supplied.

So, you need to change split symbol in code above to something, forbidden in URI, e.g. space (' '):
`h[symbol] = key.split(' ')

`After that you must rewrite config:
:login => 'extra raw_info http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name',
:mail => 'extra raw_info http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name',
:firstname => 'extra raw_info http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname',
:lastname => 'extra raw_info http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname'

And it will work.

@ioiste
Copy link

ioiste commented Jul 11, 2020

@nplatonov81 thank you, that was what I needed!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants