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

Load ProviderInformation from .well-known/openid-configuration #408

Open
murashov-a opened this issue Feb 14, 2024 · 4 comments
Open

Load ProviderInformation from .well-known/openid-configuration #408

murashov-a opened this issue Feb 14, 2024 · 4 comments
Labels

Comments

@murashov-a
Copy link

murashov-a commented Feb 14, 2024

How can set EndPoints in ProviderInformation without explicitly specifying it? They are provided in .well-known/openid-configuration.

Can the library take these settings from a openid-configuration endpoint?

I get an exception that endpoints are not specified if I don't explicitly specify them

Безымянный

@murashov-a murashov-a changed the title Load ProviderInformation by .well-known/openid-configuration Load ProviderInformation from .well-known/openid-configuration Feb 14, 2024
@brockallen
Copy link
Member

brockallen commented Feb 16, 2024

Can the library take these settings from a openid-configuration endpoint?

Yes, that's how it works by default. You just need to set the Authority. See the docs here: https://identitymodel.readthedocs.io/en/latest/native/automatic.html. Or have a look at some of the samples: https://github.com/IdentityModel/IdentityModel.OidcClient.Samples

I feel like there's some confusion somewhere (by one of us), so if I'm not understanding the issue, please let us know.

@murashov-a
Copy link
Author

Thanks for answering

Yes, the problem is on my side.

oidcclient throwed an "malformed endpoint" exception, but I don't understand what's wrong and what end point it is. Perhaps you could correct the exception text by indicating what exactly the library does not like in the openid-configuration?

Perhaps you can see the error from the json screenshot (first message)

the exception is thrown when I don't specify ProviderInformation

@brockallen
Copy link
Member

oidcclient throwed an "malformed endpoint" exception, but I don't understand what's wrong and what end point it is. Perhaps you could correct the exception text by indicating what exactly the library does not like in the openid-configuration?

I'm not sure what the issue is, but I have a guess that something that's not JSON is returned. This is likely due to that endpoint returning HTML... perhaps due to an error page being shown? The protocol expects JSON from the endpoint.

@brockallen
Copy link
Member

Hello -- any update on this issue?

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

No branches or pull requests

2 participants