Skip to content

Implement Apps API #9

@microalps

Description

@microalps

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();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions