Skip to content

OAuth2Token interface for AbstractOAuth2Token #5502

@jzheaux

Description

@jzheaux

This still needs to be thought through a bit, but contracts like these:

public class AbstractOAuth2TokenAuthenticationToken<T extends AbstractOAuth2Token>

would be a bit more flexible if the bounding type were an interface instead of an abstract class, for example:

public class AbstractOAuth2TokenAuthenticationToken<T extends OAuth2Token>

Or, perhaps something more generic:

public class AbstractOAuth2TokenAuthenticationToken<T extends Token>

These would imply the creation of an interface for AbstractOAuth2Token to extend, something like:

public interface Token {
    String getValue();
}

public abstract class AbstractOAuth2Token implements Token {
   // ...
}

Logging this ticket so that we can start the discussion.

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions