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

Configuration to reduce OpenID token size #15067

Open
Piedone opened this issue Jan 11, 2024 · 1 comment
Open

Configuration to reduce OpenID token size #15067

Piedone opened this issue Jan 11, 2024 · 1 comment

Comments

@Piedone
Copy link
Member

Piedone commented Jan 11, 2024

Is your feature request related to a problem? Please describe.

Originally by @MatthijsKrempel under #4129:

For hosting in cloud based environments header size matters. Currently the default implementation of the OpenId serializes a lot of information into the security ticket, resulting into large headersizes of the request.

Describe the solution you'd like

[Extra options that] the administrator will be able to control what claims are included into the ticket, reducing the size of the values in the header. Additional information that a service would require could be retrieved via an additional request to the OpenId server.

There's a potential start of this feature under #4129 but it needs to be re-implemented with the current source.

Describe alternatives you've considered

None.

@sebastienros
Copy link
Member

There is a feature to store the tickets server-side using IDistributedCache, so this can even use Redis when it's enabled. https://docs.orchardcore.net/en/latest/docs/reference/modules/Users/TicketStore/

This is much simpler that asking users to map which tokens they want in the cookie (who would know?). And it's a feature provided by ASP.NET.

@sebastienros sebastienros added this to the backlog milestone Feb 8, 2024
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