Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

implemented paging in ITransientDataRepository #920

Conversation

felipeleusin
Copy link

So this is a work in progress as I was trying to figure out how to add paging but I soon started to see it go gown a rabbit hole and would alter a lot of calls. My idea was to keep the default behavior available, hence the nullable parameters, but allow for paging when sensible.

I think this should be included, I was considering switching an app that I have to currently runs on a custom (OAuth2-ish) solution based on JWT to IdentityServer but we so far have tens of thousands of refresh tokens and i'd feel wary of loading all this records at once.

Is a PR like this welcome? If so, i'll continue to adapt the other methods and finish it.

It fixes issue #853

@brockallen
Copy link
Member

The intent for this is to allow paging on the permissions page?

@felipeleusin
Copy link
Author

Yes... secondarily I'm investigating if there's any time besides admin that IdentityServer tries to load all tokens of a certain type in memory.

The GetAll methods are only supposed to be used in the admin right?

@brockallen
Copy link
Member

Well, the store interfaces defined in IdSvr are only used by IdSvr (and not by an admin UI). An admin UI would define different interfaces and APIs for the admin UI.

@felipeleusin
Copy link
Author

Oh well.. never mind then... I think i'll just use streaming on my ravendb persistence layer to deal with it.

@brockallen brockallen closed this Feb 16, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants