Skip to content

feature/azure-ad-change-provider #8612

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

Open
wants to merge 9 commits into
base: devel
Choose a base branch
from

Conversation

jrouzierinverse
Copy link
Member

Description

Allow the AzureAD graph and oauth urls to be configurable.

Issue

fixes #8607

Delete branch after merge

YES

Checklist

(REQUIRED) - [yes, no or n/a]

  • Document the feature
  • Add OpenAPI specification
  • Add unit tests
  • Add acceptance tests (TestLink)

NEWS file entries

Enhancements

@jrouzierinverse jrouzierinverse requested a review from Copilot July 31, 2025 20:02
Copilot

This comment was marked as outdated.

@fdurand fdurand force-pushed the feature/azure-ad-change-provider branch from b4ea32b to f01194b Compare July 31, 2025 20:26
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR makes Azure AD graph and OAuth URLs configurable by replacing hardcoded Microsoft URLs with configurable fields. This allows for custom Azure AD endpoints or sovereign cloud deployments.

  • Replaces hardcoded user_groups_url and token_url fields with configurable graph_url and oauth_url fields
  • Updates the RADIUS configuration generation to use the configurable OAuth URL
  • Provides an upgrade script to migrate existing configurations

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
lib/pf/Authentication/Source/AzureADSource.pm Replaces hardcoded URLs with configurable graph_url and oauth_url fields
lib/pf/services/manager/radiusd_child.pm Updates RADIUS config to use configurable OAuth URL from source
html/pfappserver/root/src/views/Configuration/sources/_components/FormTypeAzureAD.vue Updates Vue form to use new graph_url and oauth_url fields
html/pfappserver/lib/pfappserver/Form/Config/Source/AzureAD.pm Updates form definition with new configurable URL fields
html/pfappserver/root/src/views/Configuration/sources/_components/index.js Exports new form group components for graph and OAuth URLs
addons/upgrade/to-15.0-azure-ad.pl Migration script to convert existing user_groups_url to graph_url

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PF / AzureAD / Graph Integration URLs as customizable fields
2 participants