Skip to content

Commit

Permalink
refactor: Update client_certificate_file_path attribute description i…
Browse files Browse the repository at this point in the history
…n M365Provider schema

Update the description of the `client_certificate_file_path` attribute in the `M365Provider` schema to clarify that it supports the PKCS#12 (.pfx or .p12) file format. The attribute should contain the certificate, private key, and optionally a certificate chain. If the file is encrypted, the `client_certificate_password` attribute should be used. This change improves the documentation and usability of the attribute.
  • Loading branch information
ShocOne committed Aug 5, 2024
1 parent 07c1c2a commit 8cf51a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,12 @@ func (p *M365Provider) Schema(ctx context.Context, req provider.SchemaRequest, r
Description: "The authentication method to use for the Entra ID application to authenticate the provider. " +
"Options: 'device_code', 'client_secret', 'client_certificate', 'interactive_browser', " +
"'username_password', 'client_assertion'. Each method requires different credentials to be provided. " +
"'client_assertion' is typically used with OIDC tokens for secure server-to-server authentication. " +
"Can also be set using the `M365_AUTH_METHOD` environment variable.",
MarkdownDescription: "The authentication method to use for the Entra ID application to authenticate the provider. " +
"Options:\n" +
"- `device_code`: Uses a device code flow for authentication.\n" +
"- `client_secret`: Uses a client ID and secret for authentication.\n" +
"- `client_certificate`: Uses a client certificate for authentication.\n" +
"- `client_certificate`: Uses a client certificate (.pfx) for authentication.\n" +
"- `interactive_browser`: Opens a browser for interactive login.\n" +
"- `username_password`: Uses username and password for authentication (not recommended for production).\n" +
"- `client_assertion`: Uses a client assertion (OIDC token) for authentication, suitable for CI/CD and server-to-server scenarios.\n\n" +
Expand Down

0 comments on commit 8cf51a6

Please sign in to comment.