Add admin auth client
This commit is contained in:
parent
b0323aebff
commit
0e674b7a76
@ -74,6 +74,12 @@ databaseChangeLog:
|
|||||||
type: TEXT
|
type: TEXT
|
||||||
constraints:
|
constraints:
|
||||||
nullable: false
|
nullable: false
|
||||||
|
- column:
|
||||||
|
name: admin_editable
|
||||||
|
type: BOOLEAN
|
||||||
|
defaultValue: TRUE
|
||||||
|
constraints:
|
||||||
|
nullable: false
|
||||||
- createTable:
|
- createTable:
|
||||||
tableName: doors
|
tableName: doors
|
||||||
columns:
|
columns:
|
||||||
@ -188,6 +194,51 @@ databaseChangeLog:
|
|||||||
type: DATE
|
type: DATE
|
||||||
constraints:
|
constraints:
|
||||||
nullable: false
|
nullable: false
|
||||||
|
- insert:
|
||||||
|
tableName: oauth2_registered_client
|
||||||
|
columns:
|
||||||
|
- column:
|
||||||
|
name: id
|
||||||
|
value: f1434eb3-7c38-45c2-9e21-f1917157ffb7
|
||||||
|
- column:
|
||||||
|
name: client_id
|
||||||
|
value: admin
|
||||||
|
- column:
|
||||||
|
name: client_id_issued_at
|
||||||
|
valueComputed: CURRENT_TIMESTAMP
|
||||||
|
- column:
|
||||||
|
name: client_secret
|
||||||
|
value: '{bcrypt}$2a$12$ihzZm/AsJCAYjoII9hd1IO25xpmHhnsOnaSuvfTPuMgt45w7cFNXi'
|
||||||
|
- column:
|
||||||
|
name: client_secret_expires_at
|
||||||
|
value: '2030-06-02T12:00:00'
|
||||||
|
- column:
|
||||||
|
name: client_name
|
||||||
|
value: admin-client
|
||||||
|
- column:
|
||||||
|
name: client_authentication_methods
|
||||||
|
value: client_secret_post
|
||||||
|
- column:
|
||||||
|
name: authorization_grant_types
|
||||||
|
value: refresh_token,authorization_code
|
||||||
|
- column:
|
||||||
|
name: redirect_uris
|
||||||
|
value: 'localhost:8082/units'
|
||||||
|
- column:
|
||||||
|
name: post_logout_redirect_uris
|
||||||
|
value: 'localhost:8082/units'
|
||||||
|
- column:
|
||||||
|
name: scopes
|
||||||
|
value: ''
|
||||||
|
- column:
|
||||||
|
name: client_settings
|
||||||
|
value: '{"@class":"java.util.Collections$UnmodifiableMap","settings.client.require-proof-key":false,"settings.client.require-authorization-consent":false}'
|
||||||
|
- column:
|
||||||
|
name: token_settings
|
||||||
|
value: '{"@class":"java.util.Collections$UnmodifiableMap","settings.token.reuse-refresh-tokens":false,"settings.token.x509-certificate-bound-access-tokens":false,"settings.token.id-token-signature-algorithm":["org.springframework.security.oauth2.jose.jws.SignatureAlgorithm","RS256"],"settings.token.access-token-time-to-live":["java.time.Duration",600.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",600.000000000],"settings.token.authorization-code-time-to-live":["java.time.Duration",300.000000000],"settings.token.device-code-time-to-live":["java.time.Duration",300.000000000]}'
|
||||||
|
- column:
|
||||||
|
name: admin_editable
|
||||||
|
value: 'FALSE'
|
||||||
- addForeignKeyConstraint:
|
- addForeignKeyConstraint:
|
||||||
baseColumnNames: unit_id
|
baseColumnNames: unit_id
|
||||||
baseTableName: doors
|
baseTableName: doors
|
||||||
|
Loading…
Reference in New Issue
Block a user