Is it possible to send a custom parameter to an external login provider/custom owin middleware
I have an Identity Server 3 who handles my authentication, and I have an external identity provider middleware which handles the signing in of the user, to sign in I have to send a token to the middleware, which the middleware uses to authenticate.
I tried following approaches:
acr_values
: I sent the token as a acr_value, but this approach does not work for 2 reasons:
The token is to long( >900 characters, even after setting theInputLengthRestrictions
for theAcrValues
to 51200 in theIdentityServerOptions
).
The acr_values get stored in the sign in message which is not accessible in neither theApplyResponseChallengeAsync()
-Method nor in theAuthenticateCoreAsync()
-Method- QueryString Parameter: I added a QueryString Parameter containing the token, this does not work either, because the parameter is not stored when redirecting to the external provider
Is there any way to store the parameter in a way that I can transfer it to the external IdProvider?
and/or can I access the SignInMessage during ApplyResponseChallengeAsync()
or AuthenticateCoreAsync()
?