samlify icon indicating copy to clipboard operation
samlify copied to clipboard

How can I specify AttributeConsumingService in sp metadata?

Open Sczlog opened this issue 2 years ago • 4 comments

In SpMetadata constructor I see AttributeConsumingService is assigned to descriptor but I can't assign it through ServiceProvider unless I input raw metadata. How can I configure it by code?

Sczlog avatar Jan 18 '23 06:01 Sczlog

In SpMetadata constructor I see AttributeConsumingService is assigned to descriptor but I can't assign it through ServiceProvider unless I input raw metadata. How can I configure it by code?

Hi, yep you can. I searched in code and found that

assertionConsumerService: [
        { Binding: 'your_binding',  Location: `your location` },
      ],

It didn't mentioned in docs. It was mentioned as String[] - but isn't true as you see

KirillTertunov avatar Mar 17 '23 08:03 KirillTertunov

@KirillTertunov that was assertionConsumerService not AttributeConsumingService, are they the same?

Sczlog avatar Mar 21 '23 05:03 Sczlog

@KirillTertunov that was assertionConsumerService not AttributeConsumingService, are they the same?

yep, you can find an answer here - 'test/index.ts'

KirillTertunov avatar Apr 18 '23 10:04 KirillTertunov

you should check https://github.com/tngan/samlify/blob/43ac2964dc61af4d8710342107c16c65f32c9bf6/src/metadata-sp.ts#L63-L69 they are different properties

Sczlog avatar May 05 '23 10:05 Sczlog