Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Apps API #9

Open
microalps opened this issue Aug 15, 2022 · 0 comments
Open

Implement Apps API #9

microalps opened this issue Aug 15, 2022 · 0 comments

Comments

@microalps
Copy link

microalps commented Aug 15, 2022

Documentation - https://developers.onelogin.com/api-docs/2/apps/overview

My use case - SAML App Certificates have to be replaced regularly (Max 5 years) and there is no UI within OneLogin to replace multiple apps at once. This allowed me to query existing apps and update them.

var samlConfig = new AppSamlConfiguration() { CertificateId = 123456789 };
foreach (var app in await client.GetApps(name: "*"))
{
	var appChanges = new UpdateAppRequest(app.Id)
	{
		Configuration = samlConfig
	};

	await client.UpdateApp(appChanges).Dump();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant