File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
src/Umbraco.Cms.Integrations.OAuthProxy/Configuration Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ public class AppSettings
12
12
13
13
public string GoogleClientSecret { get ; set ; }
14
14
15
+ public string DynamicsClientSecret { get ; set ; }
16
+
15
17
public string this [ string propertyName ] => ( string ) GetType ( ) . GetProperty ( propertyName ) ? . GetValue ( this , null ) ;
16
18
}
17
19
}
Original file line number Diff line number Diff line change @@ -10,13 +10,14 @@ public static class ServiceConfiguration
10
10
/// <summary>
11
11
/// Integrated services with their token URIs
12
12
/// </summary>
13
- public static Dictionary < string , string > ServiceProviders = new Dictionary < string , string >
13
+ public static Dictionary < string , string > ServiceProviders = new ( )
14
14
{
15
15
{ "Hubspot" , "oauth/v1/token" } ,
16
16
{ "HubspotForms" , "oauth/v1/token" } ,
17
17
{ "Semrush" , "oauth2/access_token" } ,
18
18
{ "Shopify" , "oauth/access_token" } ,
19
- { "Google" , "token" }
19
+ { "Google" , "token" } ,
20
+ { "Dynamics" , "oauth2/v2.0/token" }
20
21
} ;
21
22
22
23
public static void AddServiceClients ( this IServiceCollection services )
@@ -41,6 +42,10 @@ public static void AddServiceClients(this IServiceCollection services)
41
42
{
42
43
c . BaseAddress = new Uri ( "https://oauth2.googleapis.com/" ) ;
43
44
} ) ;
45
+ services . AddHttpClient ( "DynamicsToken" , c =>
46
+ {
47
+ c . BaseAddress = new Uri ( "https://login.microsoftonline.com/common/" ) ;
48
+ } ) ;
44
49
}
45
50
}
46
51
}
You can’t perform that action at this time.
0 commit comments