Class OAuthTokenEndpoint

    • Constructor Detail

      • OAuthTokenEndpoint

        public OAuthTokenEndpoint​(AbstractUserDatabase db,
                                  java.lang.String issuer)
        Constructor.

        The issuer argument is used for the "iss" attribute in the ID Token when the scope includes "openid".

    • Method Detail

      • handleRequest

        public void handleRequest​(WebRequest request,
                                  WebResponse response)
        Description copied from class: WResource
        Handles a request.

        Reimplement this method so that a proper response is generated for the given request. From the request object you can access request parameters and whether the request is a continuation request. In the response object, you should set the mime type and stream the output data.

        Specified by:
        handleRequest in class WResource
        Parameters:
        request - The request information
        response - The response object
      • setAccessExpSecs

        public void setAccessExpSecs​(int seconds)
        Sets the amount of seconds after which generated access tokens expire.

        Defaults to 3600 seconds.

      • setIdExpSecs

        public void setIdExpSecs​(int seconds)
        Sets the amount of seconds after which generated id tokens expire.

        Defaults to 3600 seconds.