Skip to content

Support JWTCreator.Builder to accept Json values #622

@andrewrigas

Description

@andrewrigas

I am trying to write a Scala library which basically enhance the functionality on top of auth0/java-jwt library. The problem I need to address is to be able to convert scala types via the encoders in java types, which is not really easy to do because you can have nested types. It will be nice to have an api that would accept a json directly and make some checks that the json passed was in a valid structure for payload and header.

Ideal solution is to be able to expose those 2 functions illustrated below:

public Builder withHeader(String headerClaimsJson) 

public Builder withPayload(String payloadClaimsJson)

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestA feature has been asked for or suggested by the community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions