class OAuth10Configuration extends OAuthConfiguration {

    /** Constant <code>OAUTH_VERIFIER="oauth_verifier"</code> */
    public static final String OAUTH_VERIFIER = "oauth_verifier";

    /** Constant <code>REQUEST_TOKEN="requestToken"</code> */
    public static final String REQUEST_TOKEN = "requestToken";

    /**
     * {@inheritDoc}
     *
     * Build an OAuth service from the web context.
     */
    @Override
    public OAuthService buildService(final WebContext context, final IndirectClient client) {<FILL_FUNCTION_BODY>}

    /**
     * Return the name of the attribute storing in session the request token.
     *
     * @param clientName the client name
     * @return the name of the attribute storing in session the request token
     */
    public String getRequestTokenSessionAttributeName(final String clientName) {
        return clientName + "#" + REQUEST_TOKEN;
    }
}

        init();

        val finalCallbackUrl = client.computeFinalCallbackUrl(context);

        return ((DefaultApi10a) api)
            .createService(this.key, this.secret, finalCallbackUrl, this.scope, null, null, this.httpClientConfig, null);
    
<methods>public non-sealed void <init>() ,public abstract com.github.scribejava.core.oauth.OAuthService buildService(org.pac4j.core.context.WebContext, org.pac4j.core.client.IndirectClient) <variables>public static final java.lang.String OAUTH_TOKEN,public static final java.lang.String RESPONSE_TYPE_CODE,protected java.lang.Object api,protected org.pac4j.oauth.config.HasBeenCancelledFactory hasBeenCancelledFactory,protected com.github.scribejava.core.httpclient.HttpClientConfig httpClientConfig,protected java.lang.String key,protected org.pac4j.oauth.profile.definition.OAuthProfileDefinition profileDefinition,protected java.lang.String responseType,protected java.lang.String scope,protected java.lang.String secret,protected boolean tokenAsHeader