Capability-Authentication & Authorization (Spring)
Last updated
Last updated
Spring Security is a powerful and customizable authentication and access control mechanism that Code-Wizard provides as a Capability for applications created by Spring OData as Spring Security is used to secure Spring-based applications through robust authentication and authorization.
Admin API setup
Add Host Info
To add host you need to call POST Add Host Info API with ip, port, scheme, serviceName prefix of generated app, and name for generated application.
GET List All Host
To review all list of hosts
Del Host Info By Id
To delete host you can call this API
POST Signup
Register API interacts with Spring Security
POST Login
To verify login you call this API by passing userName and password, once you post the response your response contains a bearer token, copy it and navigate to Authorization tab select type as "Bearer Token" and pass the copied token.
POST Add Role
To add roles you need to call this
PUT Add User Roles
To add user role you need to call this API and specify user id and role id