How to use remove_client_id_from_open_id_connect_provider method in localstack

Best Python code snippet using localstack_python

app.py

Source:app.py Github

copy

Full Screen

...42 for client_id in added_client_ids:43 iam.add_client_id_to_open_id_connect_provider(44 OpenIDConnectProviderArn=arn, ClientID=client_id)45 for client_id in deleted_client_ids:46 iam.remove_client_id_from_open_id_connect_provider(47 OpenIDConnectProviderArn=arn, ClientID=client_id)48 return arn49def create_provider(aws_account_id, url, client_id_list, thumbprint_list):50 try:51 response = iam.create_open_id_connect_provider(52 Url=url,53 ClientIDList=client_id_list,54 ThumbprintList=thumbprint_list)55 return response['OpenIDConnectProviderArn']56 except ClientError as e:57 if e.response['Error']['Code'] == "EntityAlreadyExists":58 arn = ARN_FORMAT.format(aws_account_id, url[8:])59 return update_provider(url, aws_account_id, client_id_list, thumbprint_list)60@helper.create...

Full Screen

Full Screen

oidc_provider_creator.py

Source:oidc_provider_creator.py Github

copy

Full Screen

...26 )27 for client in current_provider['ClientIDList']:28 if not client in audiences:29 print("Removing client " + client + " from ClientIDList of " + arn)30 iam.remove_client_id_from_open_id_connect_provider(31 OpenIDConnectProviderArn=arn,32 ClientID=client33 )34 # this is idempotent, so no issue if client ID already exists35 for client in audiences:36 print("Ensuring client " + client + " is in ClientIDList of " + arn)37 iam.add_client_id_to_open_id_connect_provider(38 OpenIDConnectProviderArn=arn,39 ClientID=client40 )41 return "OIDC Provider " + arn + " updated"42def delete_provider(arn):43 resp = iam.delete_open_id_connect_provider(OpenIDConnectProviderArn=arn)44 return "OIDC Provider " + arn + " deleted"...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run localstack automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful