IdentityPython / djangosaml2

Django SAML2 Service Provider based on pySAML2
Apache License 2.0
256 stars 143 forks source link

How to pass authentication method #119

Closed GertBurger closed 4 years ago

GertBurger commented 6 years ago

Hi,

Is it possible to set the AuthnContextClassRef element?

MS ADFS 4.0 doesn't seem to have to capability to specifiy per SP authentication methods so the SP has to request a certain method.

knaperek commented 6 years ago

Not that I'm aware of.

peppelinux commented 4 years ago

@GertBurger yes it is,

I got it to work in SATOSA that's also based on pySAML2, what you're asking for is not strictly related to djangosaml2 but to pySAML2 SP entity configuration.

https://github.com/peppelinux/Satosa-saml2saml/blob/f16c81a47c97e88c84b3812ae6eb75a4c6c30915/example/plugins/backends/spidsaml2_backend.yaml#L10

Hope this helps