/
How To Disable OAuth2 Security in OpenLegacy API Projects
How To Disable OAuth2 Security in OpenLegacy API Projects
Step By Step Guide
Go To
pom.xml
file and delete/comment the following security dependencies:<dependency> <groupId>org.openlegacy</groupId> <artifactId>openlegacy-security-client-jdbc</artifactId> <version>${openlegacy.version}</version> </dependency> <dependency> <groupId>org.openlegacy</groupId> <artifactId>openlegacy-security-user-jdbc</artifactId> <version>${openlegacy.version}</version> </dependency> <!--Since version 4.6.0 --> <dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-security</artifactId> </dependency>
2. This step is not mandatory, go to application.yml
and delete/comment the following security properties:
security:
db:
init-schema: true
clients:
- client-id: client_id
client-secret: '{noop}client_secret'
scope: read,write,trust,ol_admin
authorized-grant-types: client_credentials
spring:
security:
oauth2:
resourceserver:
jwt:
jwk-set-uri: http://localhost:8080/.well-known/jwks.json
3. Navigate to swagger and run the API without authorization.
4. If you followed the steps correctly you should get the response and successfully disabled security from OpenLegacy API project.
, multiple selections available,
Related content
Enable JWT Token Validation - OpenLegacy API
Enable JWT Token Validation - OpenLegacy API
More like this
How To Test OpenLegacy API Using Swagger
How To Test OpenLegacy API Using Swagger
More like this
How to Configure OAuth2 Provider
How to Configure OAuth2 Provider
More like this
JWTトークン検証を有効にする - OpenLegacy API
JWTトークン検証を有効にする - OpenLegacy API
More like this
OAuth2 プロバイダの構成方法
OAuth2 プロバイダの構成方法
More like this
How To Add Active Directory User Authentication to an API Project
How To Add Active Directory User Authentication to an API Project
More like this