mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user