def __init__(self, request_validator, token_generator=None,
            token_expires_in=None, **kwargs):
        auth_grant = AuthorizationCodeGrant(request_validator)
        refresh_grant = RefreshTokenGrant(request_validator)
        bearer = BearerToken(request_validator, token_generator,
                expires_in=token_expires_in)
        AuthorizationEndpoint.__init__(self, default_response_type='code',
                response_types={'code': auth_grant},
                default_token_type=bearer)
        TokenEndpoint.__init__(self, default_grant_type='authorization_code',
                grant_types={
                    'authorization_code': auth_grant,
                    'refresh_token': refresh_grant,
                },
                default_token_type=bearer)
        ResourceEndpoint.__init__(self, default_token='Bearer',
                token_types={'Bearer': bearer})
Construct a new web application server.
dataset/ETHPy150Open splunk/splunk-app-twitter/twitter2/bin/oauthlib/oauth2/rfc6749/endpoints/pre_configured.py/WebApplicationServer.__init__