|
4 | 4 | * for more information concerning the license and the contributors participating to this project.
|
5 | 5 | */
|
6 | 6 |
|
7 |
| -using System.Globalization; |
8 |
| - |
9 | 7 | namespace AspNet.Security.OAuth.JumpCloud;
|
10 | 8 |
|
11 | 9 | /// <summary>
|
@@ -36,30 +34,33 @@ public static class JumpCloudAuthenticationDefaults
|
36 | 34 | /// <summary>
|
37 | 35 | /// Default path format to use for <see cref="OAuthOptions.AuthorizationEndpoint"/>.
|
38 | 36 | /// </summary>
|
| 37 | + [Obsolete("This field is obsolete and will be removed in a future version.")] |
39 | 38 | public static readonly string AuthorizationEndpointPathFormat = "/oauth2/auth";
|
40 | 39 |
|
41 | 40 | /// <summary>
|
42 | 41 | /// Default path format to use for <see cref="OAuthOptions.TokenEndpoint"/>.
|
43 | 42 | /// </summary>
|
| 43 | + [Obsolete("This field is obsolete and will be removed in a future version.")] |
44 | 44 | public static readonly string TokenEndpointPathFormat = "/oauth2/token";
|
45 | 45 |
|
46 | 46 | /// <summary>
|
47 | 47 | /// Default path format to use for <see cref="OAuthOptions.UserInformationEndpoint"/>.
|
48 | 48 | /// </summary>
|
| 49 | + [Obsolete("This field is obsolete and will be removed in a future version.")] |
49 | 50 | public static readonly string UserInformationEndpointPathFormat = "/userinfo";
|
50 | 51 |
|
51 | 52 | /// <summary>
|
52 | 53 | /// Default path to use for <see cref="OAuthOptions.AuthorizationEndpoint"/>.
|
53 | 54 | /// </summary>
|
54 |
| - public static readonly string AuthorizationEndpointPath = string.Format(CultureInfo.InvariantCulture, AuthorizationEndpointPathFormat); |
| 55 | + public static readonly string AuthorizationEndpointPath = "/oauth2/auth"; |
55 | 56 |
|
56 | 57 | /// <summary>
|
57 | 58 | /// Default path to use for <see cref="OAuthOptions.TokenEndpoint"/>.
|
58 | 59 | /// </summary>
|
59 |
| - public static readonly string TokenEndpointPath = string.Format(CultureInfo.InvariantCulture, TokenEndpointPathFormat); |
| 60 | + public static readonly string TokenEndpointPath = "/oauth2/token"; |
60 | 61 |
|
61 | 62 | /// <summary>
|
62 | 63 | /// Default path to use for <see cref="OAuthOptions.UserInformationEndpoint"/>.
|
63 | 64 | /// </summary>
|
64 |
| - public static readonly string UserInformationEndpointPath = string.Format(CultureInfo.InvariantCulture, UserInformationEndpointPathFormat); |
| 65 | + public static readonly string UserInformationEndpointPath = "/userinfo"; |
65 | 66 | }
|
0 commit comments