OAuth provider (#8884)

This PR contains the necessary work to make Outline an OAuth provider including:

- OAuth app registration
- OAuth app management
- Private / public apps (Public in cloud only)
- Full OAuth 2.0 spec compatible authentication flow
- Granular scopes
- User token management screen in settings
- Associated API endpoints for programatic access
This commit is contained in:
Tom Moor
2025-05-03 19:40:18 -04:00
committed by GitHub
parent fd3c21d28b
commit a06671e8ce
99 changed files with 5115 additions and 221 deletions
+20
View File
@@ -56,6 +56,26 @@ export const ImportValidation = {
maxNameLength: 100,
};
export const OAuthClientValidation = {
/** The maximum length of the OAuth client name */
maxNameLength: 100,
/** The maximum length of the OAuth client description */
maxDescriptionLength: 1000,
/** The maximum length of the OAuth client developer name */
maxDeveloperNameLength: 100,
/** The maximum length of the OAuth client developer URL */
maxDeveloperUrlLength: 1000,
/** The maximum length of the OAuth client avatar URL */
maxAvatarUrlLength: 1000,
/** The maximum length of an OAuth client redirect URI */
maxRedirectUriLength: 1000,
};
export const RevisionValidation = {
minNameLength: 1,
maxNameLength: 255,