Hello, in this video I will talk about the ADF security, how you add security to your ADF application. This is your ATF application actually, in ETFs a securities there are two type of security. It is authentication or authorization. authentication is just like a login. So user role has access to system as to login authorization is a user can see which which to add the security for BG level or budget definition. So you can use it if security authorization.
So let's now start with Oracle ADF. security certification. This is our if application. You can go for application here secure configure it if security once you configure it if security You can find it if occation and authorization or authentication on can start now if authentication so you're right now because this is a basic authentication, Okay next we can even can generate a default which will be based just to see the wage or you can basically station and it will ask you for a username and a password without the login page so we can create a default login page now. So Nick is Next and Finish it will create JSON data and GB is configured This is a policy store it will create some XML files has been created so it is now created. Okay.
Some XML will add some value next to the security Security syndication okay it is syndication says how do you know if the ADF application has configured ADF security configure does ADF application or not? Okay you will find here logon page is generated it will be your HTML. So let's now try to okay just to clean all the application so let's now try to just run any page up which which username and password you should use. Actually it will use WebLogic a default provider. The user name was the WebLogic. It will be used for login You can change this provider to read from active directory or you reading from database.
But this is now we'll use a default WebLogic WebLogic provider. So we have only one user which is WebLogic user once we install the WebLogic image publisher they asked for a username and password. This is the username and password which you will be used to log into the ADF application as you can see here, actually I are on this page before it goes straight away and opens the beach but now it will ask you for username and password so you enter your WebLogic username and password and press Submit. Here your login to the page after you successfully login So let's try to do some singles. Let's try to add a new user Okay, and see how how it will work. So let's now try to run run again.
Okay, so let's try to enter a wrong wrong password. Okay submit he agreed he said invalid username or password. This is an error page. Of course you can design you this login page it is HTML page simply Shamil page. But for our there are another way to configure security for ADF application which is a custom way. This is a way which I will show you how you can create a security or security or EDF application using custom way not if security because it if security if you configure it with it if security or if application configured to buy it if security you have To deploy your ADF application in the WebLogic Server, but in case if you want to deploy your ADF application in the open source glassfish server, you need to use a custom ADF security I will show you this once we create a completed application.
How you can add user for if you configure your ADF application was security, you should log into the WebLogic console. I know if you're if you have any clue about a about WebLogic or not, but I will show you how you can add a user in a default provider. For example, if you want to log in with user one bus or user 123 you will not be able to live in okay. So let us add this user one and see Okay, so let's login okay this is a WebLogic console This is embedded WebLogic which is running here. Okay you will have his or security or in Myra here users and groups. Here's the user.
This is our WebLogic user. You can create a new user here. The name is user one. User 123 user 123. Okay. Okay, at least eight so we can write us 12345 us 12345 Okay, so we carry it now.
I use r1 here in the default authenticator. So if you look in now was user one user 12345 Submit. Now we will be able to log in without any invalid username or invalid username and passwords. Here, if you can see here the WebLogic if you see the provider you will find here, we use a default provider. But in case if you want to read username and passwords from LDAP, or from a database, you can create a new provider here. Here's the type of provider if you want LDAP both integrate or you can send selects LDAP syndicator if you want to from database you can select SQL syndicator or read on SQL disintegrator okay after that you will add the configuration of the tables and the users and you make all configuration this course is not talking about WebLogic but this is just to have an idea how you can configure it if security to read the user from LDAP or active directory or sequence structure as a database.
Sometimes we use Oracle in the Oracle internet directory. So, you find Oracle internet directory syndicator. So some some provider you will find here predefined in WebLogic, you have to define it. After you defined your provider you should reorder it and make it as a fairest first one. And it will read the user and groups from send your provider. Now the logging is good is correctly as application can login.
This is the ADF authenticator you ADF security if you want to cancel this EDF security you can easily select application secure again and configure it if security you can find it is here you can right here remove it if security Nick is finished it will be removed. So it is simple and easy for EDF with indication, indication and authorization. I will show you how to do that in the next video. See you next video.