From 6d490b0ddfd5486bbb362782e846f2e90c3a7002 Mon Sep 17 00:00:00 2001 From: Guilherme Berghauser Date: Fri, 10 May 2024 12:12:54 +0200 Subject: [PATCH] Adjust documentation of microsoft --- src/providers/microsoft.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/providers/microsoft.rs b/src/providers/microsoft.rs index a807b37..5c8025d 100644 --- a/src/providers/microsoft.rs +++ b/src/providers/microsoft.rs @@ -3,6 +3,14 @@ use crate::CustomProvider; pub struct MicrosoftProvider {} impl MicrosoftProvider { + /// Create a new MicrosoftProvider + /// + /// # Arguments + /// * `tenant_id` - The tenant id - Check Microsfot docmentation for more information: https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow#request-an-authorization-code + /// * `client_id` - The client id + /// * `client_secret` - The client secret + /// * `redirect_url` - The redirect url + /// pub fn new( tenant_id: String, client_id: String,