Hello, I'm trying to add state parameter when calling logoff function.
The setState method in oidcService enable to pass this state parameter when calling authorize function, but this state is not added to the request when calling logoff functions.
That's why I'm trying to use urlHandler callback function parameter in logoff function, but it seems that it does nothing.
Describe the bug
Impossible to add customParameter in logoff function.
Expected behavior
Pass state parameter when calling logoff functions
Desktop (please complete the following information):
Thanks for your Help
Hey @Lexa-tech , So your issue is that you want to add custom params to the logoff url, is that correct? Thanks :)
Exactly, I would like add state parameter when calling logoff function , the same way we can pass this state when calling the authorize function (with oidcService.setState ).
But If we can't use oidcService state, I don't mind using urlHandler callback function of logoff to add customParams.
Thanks.
So something like logoff(..., customParams?: { [key: string]: string | number | boolean }) would be a fit for you? @damienbod what do you think?
just need to check if the endsession endpoint allows custom parameters per spec.
cheers Damien
Couldn't you use the state that is set with the oidcService.setState method when calling logoff function ?
I don't mind using customParams, it's just a question for my comprehension of the oidc flow.
Hi @damienbod , did you find your answer about allowing custom parameters in the endsession endpoint ?
We will implement that. Just did not find the time until now. This is a breaking change.
Related #932
Most helpful comment
So something like
logoff(..., customParams?: { [key: string]: string | number | boolean }) would be a fit for you? @damienbod what do you think?