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

Claim Selection Priority #73

Open
schmidtw opened this issue Apr 16, 2021 · 0 comments
Open

Claim Selection Priority #73

schmidtw opened this issue Apr 16, 2021 · 0 comments

Comments

@schmidtw
Copy link
Member

The claims can come from a few different sources:

  • The remote business logic service
  • The HTTP request itself (as part of the payload submitted by the client)
  • Configuration of Themis
  • Time based claims

With the way Themis is assembled today there is a priority ordering as below:

  1. Time based claims (applied last, not overwritten)
  2. Configuration based claims
  3. HTTP request based claims
  4. Claims from the remote business logic service

Since the remote business logic service is given the HTTP request claims, it should be allowed to adjust/overwrite claims since it (in theory) will know better that the requesting agent.

I'll propose we change the processing order to be as follows:

  1. Time based claims (applied last, not overwritten)
  2. Configuration based claims
  3. Claims from the remote business logic service
  4. HTTP request based claims
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant