azure-activedirectory-identitymodel-extensions-for-dotnet
azure-activedirectory-identitymodel-extensions-for-dotnet copied to clipboard
Consider adding more base methods to TokenHandler
TokenHandler
seems pretty useless as a base class, as it doesn't expose any useful method for token generation or validation.
Please consider adding abstract or virtual properties/methods for at least the following APIs:
-
Type TokenType { get; }
-
bool CanReadToken(string token)
-
string CreateToken(SecurityTokenDescriptor tokenDescriptor)
-
TokenValidationResult ValidateToken(string token, TokenValidationParameters validationParameters)
@PinpointTownes we agree and want to do this work in our 6.x so we can easily have asp.net 3.x take a dependency.
@kevinchalet CreateToken(SecurityTokenDescriptor ...) is defined to return by SecurityTokenHandler to return SecurityToken. I agree this method would be helpful to return a string. Perhaps a different name.
@kevinchalet sorry we missed this one for Wilson7. Will keep it on the radar for Wilson8 (no ETA)