sas升级脚本.sql 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. CREATE TABLE `oauth2_registered_client` (
  2. `id` varchar(100) NOT NULL,
  3. `client_id` varchar(100) NOT NULL,
  4. `client_id_issued_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  5. `client_secret` varchar(200) DEFAULT NULL,
  6. `client_secret_expires_at` timestamp NULL DEFAULT NULL,
  7. `client_name` varchar(200) NOT NULL,
  8. `client_authentication_methods` varchar(1000) NOT NULL,
  9. `authorization_grant_types` varchar(1000) NOT NULL,
  10. `redirect_uris` varchar(1000) DEFAULT NULL,
  11. `post_logout_redirect_uris` varchar(1000) DEFAULT NULL,
  12. `scopes` varchar(1000) NOT NULL,
  13. `client_settings` varchar(2000) NOT NULL,
  14. `token_settings` varchar(2000) NOT NULL,
  15. PRIMARY KEY (`id`)
  16. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  17. INSERT INTO `oauth2_registered_client`
  18. (`id`,
  19. `client_id`,
  20. `client_id_issued_at`,
  21. `client_secret`,
  22. `client_secret_expires_at`,
  23. `client_name`,
  24. `client_authentication_methods`,
  25. `authorization_grant_types`,
  26. `redirect_uris`,
  27. `post_logout_redirect_uris`,
  28. `scopes`,
  29. `client_settings`,
  30. `token_settings`)
  31. VALUES
  32. ('3eacac0e-0de9-4727-9a64-6bdd4be2ee1f',
  33. 'jeecg-client',
  34. now(),
  35. 'secret',
  36. null,
  37. '3eacac0e-0de9-4727-9a64-6bdd4be2ee1f',
  38. 'client_secret_basic',
  39. 'refresh_token,authorization_code,password,app,phone,social',
  40. 'http://127.0.0.1:8080/jeecg-',
  41. 'http://127.0.0.1:8080/',
  42. '*',
  43. '{"@class":"java.util.Collections$UnmodifiableMap","settings.client.require-proof-key":false,"settings.client.require-authorization-consent":true}',
  44. '{"@class":"java.util.Collections$UnmodifiableMap","settings.token.reuse-refresh-tokens":true,"settings.token.id-token-signature-algorithm":["org.springframework.security.oauth2.jose.jws.SignatureAlgorithm","RS256"],"settings.token.access-token-time-to-live":["java.time.Duration",300000.000000000],"settings.token.access-token-format":{"@class":"org.springframework.security.oauth2.server.authorization.settings.OAuth2TokenFormat","value":"self-contained"},"settings.token.refresh-token-time-to-live":["java.time.Duration",3600.000000000],"settings.token.authorization-code-time-to-live":["java.time.Duration",300000.000000000],"settings.token.device-code-time-to-live":["java.time.Duration",300000.000000000]}');