@@ -460,21 +460,26 @@ public class Config
460460 {
461461 EntityId = "https://saml-sp1.example.com" ,
462462 DisplayName = "Simple SAML SP" ,
463- AssertionConsumerServiceUrls = [ new Uri ( "https://saml-sp1.example.com/acs" ) ] ,
464- AssertionConsumerServiceBinding = SamlBinding . HttpPost ,
463+ AssertionConsumerServiceUrls = new List < IndexedEndpoint >
464+ {
465+ new IndexedEndpoint { Location = "https://saml-sp1.example.com/acs" , Binding = SamlBinding . HttpPost , Index = 0 , IsDefault = true }
466+ } ,
467+ AllowedScopes = { "openid" , "profile" } ,
465468 } ,
466469
467470 // SP with Single Logout
468471 new SamlServiceProvider
469472 {
470473 EntityId = "https://saml-sp2.example.com" ,
471474 DisplayName = "SAML SP with SLO" ,
472- AssertionConsumerServiceUrls = [ new Uri ( "https://saml-sp2.example.com/acs" ) ] ,
473- AssertionConsumerServiceBinding = SamlBinding . HttpPost ,
474- SingleLogoutServiceUrl = new SamlEndpointType
475+ AssertionConsumerServiceUrls = new List < IndexedEndpoint >
476+ {
477+ new IndexedEndpoint { Location = "https://saml-sp2.example.com/acs" , Binding = SamlBinding . HttpPost , Index = 0 , IsDefault = true }
478+ } ,
479+ AllowedScopes = { "openid" , "profile" } ,
480+ SingleLogoutServiceUrls = new List < SamlEndpointType >
475481 {
476- Location = new Uri ( "https://saml-sp2.example.com/saml/slo" ) ,
477- Binding = SamlBinding . HttpPost ,
482+ new SamlEndpointType { Location = "https://saml-sp2.example.com/saml/slo" , Binding = SamlBinding . HttpPost }
478483 } ,
479484 } ,
480485
@@ -483,13 +488,15 @@ public class Config
483488 {
484489 EntityId = "https://saml-sp3.example.com" ,
485490 DisplayName = "SAML SP (IdP-initiated)" ,
486- AssertionConsumerServiceUrls = [ new Uri ( "https://saml-sp3.example.com/acs" ) ] ,
487- AssertionConsumerServiceBinding = SamlBinding . HttpPost ,
491+ AssertionConsumerServiceUrls = new List < IndexedEndpoint >
492+ {
493+ new IndexedEndpoint { Location = "https://saml-sp3.example.com/acs" , Binding = SamlBinding . HttpPost , Index = 0 , IsDefault = true }
494+ } ,
488495 AllowIdpInitiated = true ,
489- SingleLogoutServiceUrl = new SamlEndpointType
496+ AllowedScopes = { "openid" , "profile" } ,
497+ SingleLogoutServiceUrls = new List < SamlEndpointType >
490498 {
491- Location = new Uri ( "https://saml-sp3.example.com/saml/slo" ) ,
492- Binding = SamlBinding . HttpPost ,
499+ new SamlEndpointType { Location = "https://saml-sp3.example.com/saml/slo" , Binding = SamlBinding . HttpPost }
493500 } ,
494501 } ,
495502 } ;
0 commit comments