What is the meaning of Realm in spring security

In my application, I use spring security, and I just want to know what β€œrealm” means in the HTTP configuration.

+6
source share
2 answers

A realm is a credential store that allows you to control access based on identity or role.

Java Documentation

What is a kingdom?

For a web application, a realm is a complete database of users and groups that identify the actual users of the web application (or set of web applications) and are controlled by the same authentication policy.

The Java EE Server Authentication Service can manage users in various areas. In this release of the application server, the administration, administration, and certificate domains are preconfigured for the application server.

In the file pane, the server stores user credentials locally in a file named keyfile. You can use the administrator console to manage users in the file area.

When using a file region, the server authentication service verifies the identity of the user by checking the file region. This area is used to authenticate all clients, with the exception of web browser clients using the HTTPS protocol and certificates.

In the certificate area, the server stores user credentials in the certificate database. When using the certificate scope, the server uses HTTPS certificates to authenticate web clients. To verify the user's identity in the certificate area, the authentication service verifies the X.509 certificate. For step-by-step instructions for creating this type of certificate, see Working with Digital Certificates. The common name field is the X.509 certificate name field.

The administrative area is also FileRealm and stores the user administrator credentials locally in a file called admin-keyfile. You can use the administrator console to manage users in this area in the same way as you manage users in the file area. For more information, see Manage Users and Groups on the Application Server.

+8
source

A scope is a security policy scope defined for a web server or application server. A scope contains a collection of users who may or may not be assigned to a group.

A scope is a security policy scope defined for a network or server application. Secure resources on the server can be divided into a set of security spaces, each with its own authentication scheme and / or authorization database containing a collection of users and groups. For a web application, a realm is a complete database of users and groups that are identified as real users of a web application or set of web applications and are controlled by the same authentication policy. The Java EE Server Authentication Service can manage users in several realms.

https://docs.oracle.com/cd/E19798-01/821-1841/bnbxk/index.html

0
source

Source: https://habr.com/ru/post/943512/


All Articles