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

urlHandler callback function parameter in LogoffRevocationService.logoff does nothing #966

Closed
Lexa-tech opened this issue Feb 10, 2021 · 10 comments

Comments

@Lexa-tech
Copy link

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.

  • setState in OIDCService is not applied when calling logoff function
  • urlHandler callback function param does nothing in logoff function

Expected behavior
Pass state parameter when calling logoff functions

Desktop (please complete the following information):

  • Browser [Chrome]

Thanks for your Help

@FabianGosebrink
Copy link
Collaborator

Hey @Lexa-tech , So your issue is that you want to add custom params to the logoff url, is that correct? Thanks :)

@FabianGosebrink FabianGosebrink self-assigned this Feb 11, 2021
@Lexa-tech
Copy link
Author

Lexa-tech commented Feb 11, 2021

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.

@FabianGosebrink
Copy link
Collaborator

So something like logoff(..., customParams?: { [key: string]: string | number | boolean }) would be a fit for you? @damienbod what do you think?

@damienbod
Copy link
Owner

just need to check if the endsession endpoint allows custom parameters per spec.

cheers Damien

@Lexa-tech
Copy link
Author

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.

@Lexa-tech
Copy link
Author

Hi @damienbod , did you find your answer about allowing custom parameters in the endsession endpoint ?

@FabianGosebrink
Copy link
Collaborator

We will implement that. Just did not find the time until now. This is a breaking change.

@FabianGosebrink
Copy link
Collaborator

Related #932

@FabianGosebrink
Copy link
Collaborator

Implemented, will be in Release 12.

@Lexa-tech
Copy link
Author

Implemented, will be in Release 12.

Thanks @FabianGosebrink

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

3 participants