You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to activate different features at different sponsoring levels, we might want to introduce a way to surface tier-related claims in the sponsor manifest claims (JWT).
One way to achieve this would be to process hidden comments in tier definitions by the sponsorable, like:
☕ You want to buy me a Nespresso capsule, and everyone should be allowed to do that 🤗
<!-- tier: basic -->
By adding the <!-- claim: value -->, the sponsorable would introduce arbitrary claims into sponsor manifests.
Claims should be cumulative and overridable, though: a tier of $100 should override a tier claim specified by the $2 tier, but should also inherit a foo claim specified at the $2 level too. So, the closest tier to the actual user amount defines the claims that "win", and all other claims are inherited in turn (also overriding lower tier claims in turn).
This sounds a bit complicated, but editing and manually repeating hidden claims in tier descriptions isn't fun, so inheritance makes sense if we introduce this feature.
The text was updated successfully, but these errors were encountered:
As part of the tier description, sponsorables can add arbitrary yaml metadata such as:
```
<!-- tier: basic -->
```
Multiple values are supported in standard yaml format.
These claims are cumulative (i.e. tier 3 gets tier 2 and tier 1 metadata, with the closest tier to the actual sponsoring tier wins).
This now allows client code to selectively enable functionality based on GH sponsorship tier metadata.
Fixes#234
As part of the tier description, sponsorables can add arbitrary yaml metadata such as:
```
<!-- tier: basic -->
```
Multiple values are supported in standard yaml format.
These claims are cumulative (i.e. tier 3 gets tier 2 and tier 1 metadata, with the closest tier to the actual sponsoring tier wins).
This now allows client code to selectively enable functionality based on GH sponsorship tier metadata.
Fixes#234
In order to activate different features at different sponsoring levels, we might want to introduce a way to surface tier-related claims in the sponsor manifest claims (JWT).
One way to achieve this would be to process hidden comments in tier definitions by the sponsorable, like:
By adding the
<!-- claim: value -->
, the sponsorable would introduce arbitrary claims into sponsor manifests.Claims should be cumulative and overridable, though: a tier of $100 should override a
tier
claim specified by the $2 tier, but should also inherit afoo
claim specified at the $2 level too. So, the closest tier to the actual user amount defines the claims that "win", and all other claims are inherited in turn (also overriding lower tier claims in turn).This sounds a bit complicated, but editing and manually repeating hidden claims in tier descriptions isn't fun, so inheritance makes sense if we introduce this feature.
The text was updated successfully, but these errors were encountered: