steverhoades / oauth2-openid-connect-server

An OpenID Connect Server plugin for The PHP League's OAuth2 Server
MIT License
198 stars 41 forks source link

The ClaimSetInterface API is unclear #61

Open stof opened 1 week ago

stof commented 1 week ago

The interface ClaimSetInterface defines a getClaims(): array method without defining the expected type for the array.

This interface is used in 2 places:

I think we should have 2 different interfaces there, one representing the claims available as a user (being a map from claim names to claim values) and another one representing a set of claim names associated with a scope.

stof commented 6 days ago

@steverhoades do you have any insight on this ? Is my analysis of the expected types correct ? And what should be done about that ?