You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/docfx_project/index.md
+53-12Lines changed: 53 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,25 @@
6
6
7
7
This library allows access via .NET to the iRacing "Data API". These APIs allow a properly authenticated user a supported method of accessing data from the service.
iRacing has announced that they now require multi-factor authentication (MFA) for all users by default. This will affect the ability to use the iRacing Data API by logging in with a username or password.
13
+
iRacing now requires multi-factor authentication (MFA) for all users by default. This will affect the ability to use the iRacing Data API by logging in with a username or password.
14
14
15
-
In the immediate future, use of the Data API will be supported by enabling "Legacy Authentication" in your iRacing account settings. iRacing will advise next steps for the authentication of applications for the Data API later on.
15
+
Use of the Data API will be supported by enabling "Legacy Authentication" in your iRacing account settings. iRacing will advise next steps for the authentication of applications for the Data API later on.
16
16
17
-
To continue to use this library you **must**[enable "Legacy Authentication" in your iRacing account settings](https://support.iracing.com/support/solutions/articles/31000173894-enabling-or-disabling-legacy-read-only-authentication) before attempting to authenticate. Please **do not** enable this setting unless you require it, as it may reduce the security on your iRacing account.
17
+
To use username & password authentication with this library you **must**[enable "Legacy Authentication" in your iRacing account settings](https://support.iracing.com/support/solutions/articles/31000173894-enabling-or-disabling-legacy-read-only-authentication) before attempting to authenticate. Please **do not** enable this setting unless you require it, as it may reduce the security on your iRacing account.
18
+
19
+
**⚠ Note:** Legacy authentication will be removed 9 Dec 2025 and one of the OAuth-based authentication methods required. See: https://forums.iracing.com/discussion/84226/legacy-authentication-removal-dec-9-2025
The "Password Limited Grant" is authentication intended for scripts or back-end processes that do not need to access the details of specific users.
24
+
25
+
Full information is available from the [iRacing.com Auth Service "Password Limited Grant" page](https://oauth.iracing.com/oauth2/book/token_endpoint.html#password-limited-grant).
26
+
27
+
To use this authentication method you need to contact iRacing who will allocate a "Client ID" and "Client Secret".
@@ -79,13 +104,29 @@ Register the iRacing Data API caching client classes with the service provider.
79
104
```csharp
80
105
services.AddIRacingDataApiWithCaching(options=>
81
106
{
82
-
options.UserAgentProductName="MyApplicationName";
83
-
options.UserAgentProductVersion=newVersion(1, 0);
107
+
// [... normal configuration for your chosen authentication type here]
84
108
});
85
109
```
86
110
87
111
Then simply use the `IDataClient` as before.
88
112
113
+
# Versioning
114
+
115
+
Ideally you should always use the latest version of the library that is available. This is because iRacing will sometimes introduce API changes during a release which make the old code incompatible.
116
+
117
+
This library will use version numbers will be in the format:
118
+
119
+
[YY][SS].[R]
120
+
121
+
Where:
122
+
- YY = two digit year
123
+
- SS = the iRacing season the library release was made in as a zero-padded number (i.e. 01, 02, 03, 04)
124
+
- R = release number, which increments when changes are made although it may not be sequential
125
+
126
+
Example:
127
+
128
+
- 2303.1 = changes compatible with iRacing 2023 Season 3 or later, and is release 1 during this season
129
+
89
130
# Contributing
90
131
91
132
Before you begin a contribution, please read and ensure you are comfortable with this project's [Code of Conduct](https://github.com/AdrianJSClark/aydsko-iracingdata/blob/main/CODE_OF_CONDUCT.md).
0 commit comments