Imlementing a custom GrantType
Issue #374
invalid
We are trying to implement a new custom grantType for our specific needs. But the GrantType class is final and we are not able extend it. Also, in AuthorizationGrant class if there is no matching grantTypes it throws exception directly. How can we resolve these issues or what is the proper way of extending the GrantTypes and other classes based on nimbus lib.
Comments (3)
-
-
And, please post your ticket in the OAuth / OIDC SDK repo, this one is actually for the JWT library:
-
- changed status to invalid
Issue not related to this JWT lib project. (please repost in the SDK issue tracker if necessary)
- Log in to comment
Hi,
The GrantType class is intended for representing grant type identifiers, e.g. “authorization_code”, and should not be extended. Use the public constructor to create the grant type ID for your own.
As for your second point, do you refer to the AuthorizationGrant.parse method?