def create_client(self): config = { 'client_id': 'client_id', 'client_secret': 'a longesh password', 'redirect_uris': ['https://example.com/cli/authz_cb'], 'behaviour': { 'response_types': ['code'] }, 'add_ons': { "pkce": { "function": "oidcservice.oidc.add_on.pkce.add_pkce_support", "kwargs": { "code_challenge_length": 64, "code_challenge_method": "S256" } } } } _cam = ca_factory _srvs = DEFAULT_SERVICES service_context = ServiceContext(CLI_KEY, client_id='client_id', issuer='https://www.example.org/as', config=config) self.service = init_services(_srvs, service_context, _cam) if 'add_ons' in config: do_add_ons(config['add_ons'], self.service) service_context.service = self.service
def create_client(self): config = { 'client_id': 'client_id', 'client_secret': 'a longesh password', 'redirect_uris': ['https://example.com/cli/authz_cb'], 'behaviour': { 'response_types': ['code'] }, 'add_ons': { "pushed_authorization": { "function": "oidcservice.oidc.add_on.pushed_authorization" ".add_pushed_authorization_support", "kwargs": { "body_format": "jws", "signing_algorthm": "RS256", "http_client": None, "merge_rule": "lax" } } } } _cam = ca_factory _srvs = DEFAULT_SERVICES service_context = ServiceContext(CLI_KEY, client_id='client_id', issuer='https://www.example.org/as', config=config) self.service = init_services(_srvs, service_context, InMemoryStateDataBase(), _cam) if 'add_ons' in config: do_add_ons(config['add_ons'], self.service) service_context.service = self.service service_context.provider_info = { "pushed_authorization_request_endpoint": "https://as.example.com/push" }