Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I specify AttributeConsumingService in sp metadata? #506

Open
Sczlog opened this issue Jan 18, 2023 · 4 comments
Open

How can I specify AttributeConsumingService in sp metadata? #506

Sczlog opened this issue Jan 18, 2023 · 4 comments

Comments

@Sczlog
Copy link

Sczlog commented Jan 18, 2023

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?

@KirillTertunov
Copy link

KirillTertunov commented Mar 17, 2023

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

@Sczlog
Copy link
Author

Sczlog commented Mar 21, 2023

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

@KirillTertunov
Copy link

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

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

@Sczlog
Copy link
Author

Sczlog commented May 5, 2023

you should check

const descriptors: MetaElement = {
KeyDescriptor: [],
NameIDFormat: [],
SingleLogoutService: [],
AssertionConsumerService: [],
AttributeConsumingService: [],
};

they are different properties

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

No branches or pull requests

2 participants