@@ -10,22 +10,22 @@ namespace DocuSign.CodeExamples.Authentication
1010 using DocuSign . eSign . Client ;
1111 using static DocuSign . eSign . Client . Auth . OAuth ;
1212
13- public static class JWTAuth
13+ public static class JwtAuth
1414 {
1515 /// <summary>
1616 /// Uses Json Web Token (JWT) Authentication Method to obtain the necessary information needed to make API calls.
1717 /// </summary>
1818 /// <returns>Auth token needed for API calls</returns>
19- public static OAuthToken AuthenticateWithJWT ( string api , string clientId , string impersonatedUserId , string authServer , byte [ ] privateKeyBytes )
19+ public static OAuthToken AuthenticateWithJwt ( string api , string clientId , string impersonatedUserId , string authServer , byte [ ] privateKeyBytes )
2020 {
2121 var docuSignClient = new DocuSignClient ( ) ;
22- var apiType = Enum . Parse < ExamplesAPIType > ( api ) ;
22+ var apiType = Enum . Parse < ExamplesApiType > ( api ) ;
2323 var scopes = new List < string >
2424 {
2525 "signature" ,
2626 "impersonation" ,
2727 } ;
28- if ( apiType == ExamplesAPIType . Rooms )
28+ if ( apiType == ExamplesApiType . Rooms )
2929 {
3030 scopes . AddRange ( new List < string >
3131 {
@@ -41,7 +41,7 @@ public static OAuthToken AuthenticateWithJWT(string api, string clientId, string
4141 } ) ;
4242 }
4343
44- if ( apiType == ExamplesAPIType . Click )
44+ if ( apiType == ExamplesApiType . Click )
4545 {
4646 scopes . AddRange ( new List < string >
4747 {
@@ -50,7 +50,7 @@ public static OAuthToken AuthenticateWithJWT(string api, string clientId, string
5050 } ) ;
5151 }
5252
53- if ( apiType == ExamplesAPIType . Monitor )
53+ if ( apiType == ExamplesApiType . Monitor )
5454 {
5555 scopes . AddRange ( new List < string >
5656 {
@@ -59,7 +59,7 @@ public static OAuthToken AuthenticateWithJWT(string api, string clientId, string
5959 } ) ;
6060 }
6161
62- if ( apiType == ExamplesAPIType . Admin )
62+ if ( apiType == ExamplesApiType . Admin )
6363 {
6464 scopes . AddRange ( new List < string >
6565 {
@@ -75,7 +75,7 @@ public static OAuthToken AuthenticateWithJWT(string api, string clientId, string
7575 "asset_group_account_read" ,
7676 "asset_group_account_clone_write" ,
7777 "asset_group_account_clone_read" ,
78- } ) ;
78+ } ) ;
7979 }
8080
8181 return docuSignClient . RequestJWTUserToken (
0 commit comments