Add scripts to create OIDC apps and decompose PEM certs#5
Merged
Stuart B. Wilkins (stuwilkins) merged 6 commits intoJun 27, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces two standalone utilities to the n2snscripts collection: one for creating/reconciling an Entra ID OIDC app via Microsoft Graph (using the current Azure CLI login), and another for inspecting/verifying PEM certificate chains.
Changes:
- Add
bin/azoidcapp(Python, stdlib-only) to create/reconcile an OIDC app + service principal and grant delegated Graph permissions with admin consent. - Add
bin/pemdecompose(bash) to list certificates in PEM files and optionally verify chain ordering. - Document both scripts and their dependencies in
README.md.
Reviewed changes
Copilot reviewed 1 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| README.md | Documents new scripts, usage, dependencies, and exit codes. |
| bin/pemdecompose | New bash utility to list PEM cert blocks and optionally verify chain links. |
| bin/azoidcapp | New Python utility to create/reconcile Entra ID OIDC app/SP and delegated Graph permission grants. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Padraic Shafer (padraic-shafer)
previously approved these changes
Jun 26, 2026
Padraic Shafer (padraic-shafer)
left a comment
Contributor
There was a problem hiding this comment.
Looks great, and the new scripts worked (within the limits of my Az permissions)
I've recommended updating an outdated GHA.
Co-authored-by: Padraic Shafer <76011594+padraic-shafer@users.noreply.github.com>
Contributor
Author
|
Padraic Shafer (@padraic-shafer) added suggestion ready to go |
Padraic Shafer (padraic-shafer)
approved these changes
Jun 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add scripts
Description
Adds scripts to:
Testing
Tested both through use.