Duende SAML 8.0.x returning null from GetAuthorizationContextAsync #595
|
After migrating to Duende SAML from Rsk.Saml the authorization context returns null from the method below: var context = await _interaction.GetAuthorizationContextAsync(Input.ReturnUrl, HttpContext.RequestAborted);This is due to the type casting of the result to an public async Task<AuthorizationRequest?> GetAuthorizationContextAsync(string? returnUrl, Ct ct)
{
using var activity = Tracing.ServiceActivitySource.StartActivity("DefaultIdentityServerInteractionService.GetAuthorizationContext");
if (string.IsNullOrEmpty(returnUrl))
{
_logger.LogTrace("No AuthorizationRequest being returned");
return null;
}
+ var result = await _returnUrlParser.ParseAsync(returnUrl, ct) as AuthorizationRequest;
if (result != null)
{
_logger.LogTrace("AuthorizationRequest being returned");
}
else
{
_logger.LogTrace("No AuthorizationRequest being returned");
}
return result;
}When utilizing a SAML client the result is a type of |
Replies: 2 comments 1 reply
|
Hi @secart, I raised this issue with our engineering team! Thanks for digging into this! |
|
Hi @secart, the SAML documentation has a note about using
|
Hi @secart, the SAML documentation has a note about using
GetAuthenticationContextAsyncon theIIdentityServerInteractionServicefor your specific scenario. We are reviewing the API and will be considering some adjustments which will improve the developer experience.