How to get back roles in apex? - oracle-apex

My problem is: Apex suggested me to change the admin passoword and i've changed the password in apex 4.1 application express. But after logout from my workspace and trying to login back apex has rejected my credetencials. And I don't why? Because the browser account saves my login data and pass automatically. Now I'm in bad situation. I've tried to reset password but we don't know the email which has been specified in apex for reseting password. Any suggestitions??

Related

Auto login in django webapp opened in an iframe inside microsoft dynamics

Situation:
I have a developed a webapp using django which uses the default authentication middleware.All the views are login_required. Now client wants when he will login into CRM then webapp will open in an iframe and he should be auto logged inside django webapp as well.
Issues:
Opening webapp inside an iframe in CRM can be done. But how can django webapp create a session for the user logged in inside CRM? Django uses its own authentication, CRM uses its own. Even If i link Django authentication with azure active directory , still username and password has to be entered in the iframe.I cannot figure out how auto login will be done.
Update
I don't have CRM screenshot with me but i have the same use case in microsoft teams.
Now in this image my webapp is opened in teams tab and what i know tabs use iframe to open the page.The username and password which is being asked in the screenshot are validated by Django Authentication Backend. Once username and password are entered and verified, dashboard will open.
Requirement:
I don't want this login page to be opened , i want that dashboard will open directly. In simple words, authenticating in teams should authenticate my Django app as well.
In ROPC , username(userPrinicpalName) and password are required, how will django webapp opened in iframe will access username and password? I don't think that client can simply store password in browser's local storage as passwords are encrypted.
Second approach:
Right now dashboard opens at www.example.com. I can create a url like www.example.com/<id_token>/ and when this url will hit my server , i can validate this id_token and authenticate the user. But question here is does CRM has the ability to provide id_token in iframe src?
P.S: I don't have Microsoft Dynamics screenshot with me but i quickly implemented this in teams as i think use case is same.
Newest
Or you can use Microsoft identity platform and the OAuth 2.0 client credentials flow.
Post
1. 401- Unauthorized authentication using REST API Dynamics CRM with Azure AD
You can use ROPC flow to achieve this requirement.
I believe that any page opened by your iframe should have a parameter to record user information, right, suppose it is an id token. When you open the page in your iframe, when the page is initialized, that is, use ROPC flow in $(documnet).ready(function(){}) to log in silently. There will be no pop-up window prompting you to log in, wait for success After that, the callback method will get the id token so you can achieve your needs.
The above is just an idea, the specific implementation can be coded according to the needs of the project.
For more details, you can refer my answer in below posts.
1. Could I sign into embedded PowerApp via Microsoft LiveID Account “quietly”?
2. Is there a way to improve the performance of MSAL-browser js login?
3. How to tell if a user has an active Azure session, in html page, before SSO?

Reset password using custom authentication in oracle apex

I have a custom authentication function and i also want to add reset password functionality.
So i added the reset button to login page and redirect it to change password page.
After this however i am confused as to how should i proceed to reset the password?
apex_util.reset_password->> will it help here?
I also need to update the new password with password in my table.
This is the custom auth function i am using.
Vini,
The apex_util.change_password is to update APEX User credentials. You are storing user credentials in your own table. Therefore, you will need to write your own PL/QL to update the appropriate record in your table.
Regards,
David

Admin email is not updating on Drupal7

I have tried to install Drupal 7.x on AWS by using cloudformation but after the installation, while connecting to the RDS admin the administrator email is not updating.
In the users table,enter image description here I am able to find all the schema that I have given while installing the Drupal site except for mail(Default). The mail field is filled up with "admin#example.com", and I am unable to find my email in the table. Due to this result, am unable to reset my password and also create new users. New users also don't receive emails from the admin.
I am able to see my email in the Drupal site but in the database, I see "admin#example.com" (the default value). What could be going wrong here?

DRUPAL You are not authorized to access this page after clearing cookies

I was logged as a siteadmin on my local page, after clearing cookies I cannot login again on this same login and password. I tried to upload the backup of the database when i can login, but it not helped, i clear all the cache.
Did someone had a such problem? How to resolve it?
Thanks,
Vergili
try like this:
Go in PhpAdmin and select the database of your drupal website
Scroll down and Go to record users, admin user is always the first user id:1
Make EDIT the first user (admin user) and change field email with your email.
After email changed, go to your website and try to do "forgot password" on your loggin page, you will receive a email restore password in your email inserted in your database.
This can be a way to login again like admin.
If you have Drush installed you can navigate to your sites root directory in the console and type drush uli It will give you a one time login.
it will look like:
http://default/user/reset/1/1464702672/4-mLpgYQqVblYxY3xPq4hY6yF9K1vCvsvfOHgGNyhWg/login
Replace 'default' with your domain.

skip_comfirmation! is not working - Rails4 - Devise 3

Windows 8.1
Ruby 2.0.0
Rails 4.1
Devise 3.xx
In my registrations_controller, I have the following:
#user.skip_confirmation!
prior to saving. This is working only partially, as confirmation email is not being sent out, but the confirmed_at field is being filled, and I can login using the credentials I used to register.
How do I skip confirmation altogether? If there are recommendations on how to confirm later (by an admin), that would be great.
As you don't want them to be able to login until they've later been confirmed by an admin, you can use skip_confirmation_notification! instead of skip_confirmation!. This will create the confirmation token and the user will need to be confirmed, but it won't send the email notification to enable them to confirm themselves. They won't be able to log in until they're confirmed. You can then call user.confirm! for an admin to confirm the user later. This should do the job, but the source code/comments might be worth a browse:
https://github.com/plataformatec/devise/blob/master/lib/devise/models/confirmable.rb