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

Console application without user input to authenticate SAML SSO #1483

Closed
ElBertrando opened this issue Dec 12, 2024 · 2 comments
Closed

Console application without user input to authenticate SAML SSO #1483

ElBertrando opened this issue Dec 12, 2024 · 2 comments

Comments

@ElBertrando
Copy link

I have a situation where I need to authenticate SAML SSO using a console application without user input at the university where I work. I have been working with IT and they have provided Service provider Metadata with contains the SSL signing key, entityID and Assertion Consumer Service URL. In addition they send me the IdP Metadata which contains the SSL signing/encryption key, entityID and Single Sign On Service URL.
Is this going to be possible using this library ?

@joshuafranklinengineeringsystems

Are your users sync'd on premise uses or cloud only users? You may need to check if the User.Identity.IsAuthenticated is true? The problem here is that this may mean they've been authenticated again the local on Prem AD or if the Entra Id login session is still persistent and valid. If so attempt the Acs challenge response and if the entra session still exists then this ought to re-affirm and refresh the saml2 token.

@ElBertrando
Copy link
Author

ElBertrando commented Dec 13, 2024

Our users are sync'd on premise via Shibboleth IdP. I'm not sure where I would need to check the User.Identity.IsAuthenticated in the code but I'm sure its a boolean property in the library or in ASp.net. I assume once I get authenticated I can append a cookie/token to the request to the SP ?

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

No branches or pull requests

2 participants