ここでは、OAuth2 プロバイダ をJDBC, LDAP または ADで利用するプロパティの設定について説明します:
アプリケーションyamlに、以下を追加します:
spring: security: oauth2: resourceserver: # ---EXAMPLE--- jwt: jwk-set-uri: http://localhost:8080/.well-known/jwks.json |
JDBC properties
ol: security: db: init-schema: true clients: - client-id: client_id client-secret: '{noop}client_secret' scope: read,write,trust,ol_admin authorized-grant-types: password # USER CONFIGURATION WORKS ONLY WITH JDBC PROVIDER users: - username: user password: '{noop}password' |
デフォルトの pom.xml に、次のdependencyを追加します:
|
次の dependencyを削除します:
|
代わりに、次の dependency を追加します:
|
次の dependencyを削除します:
|
代わりに、次の dependency を追加します:
|