Imlementing a custom GrantType

Issue #374 invalid
Former user created an issue

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)

  1. Vladimir Dzhuvinov

    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?

  2. Log in to comment