Meteor: clicking the link from Accounts.sendResetPasswordEmail - meteor

Accounts.forgotPassword() triggers Accounts.sendResetPasswordEmail() and the email is successfully sent. But when I click on the link in the email, a new instance of my app (new browser window) is brought up. How can I prevent that from happening? I want to stay in the calling app, not open another instance of it.

Related

FirebaseUI email sign in link opens new browser tab

I am using FirebaseUI Email link sign in.
Clicking the link returns me to the correct page (where I began the sign in process) but not to the same tab. A new tab is opened and I am left with the first tab open, showing the message,
A sign-in email with additional instructions was sent to user#example.com. Check your email to complete sign-in.
Does this depend on my own browser settings or can I target the initial tab?
If not, can I close the initial tab from the new tab?

Detect when OnResume is called as a result of closing permission dialog

I'm refreshing a screen when OnResume is raised. The intention is to automatically refresh when a user re-opens the app when they've been away doing something else. However, it's firing merely when a permissions dialog is closed - e.g. when the app asks to send notifications. This isn't good because the refresh wipes any changes made by the user.
Is it possible to only handle OnResume when app is opened from being properly backgrounded?

How can I fix a "Sorry, you don't have access to this application" error when accessing app from link in email?

I have an App Maker app that sends a notification email to a user when they have to take action on an item. The email includes a link into the app to access the item they need to take action on directly. For whatever reason, when they click on the email in the link, users are getting a "Sorry, you don't have access to this application" error.
The URL generated in the email is correct, and exactly matches the URL you'd be at if you navigated to the same page/record from within the app.
It looks like there's some kind of link resolution going on when you click on the email link -- there's a brief period when the URL in the address bar is of the form https://www.google.com/url?q=https://script.google.com/a/xxxxx/macros/s/<correct script ID>/exec?evalId%3D823%23EditEvaluation&source=gmail&ust=<number>&usg=<string>
For almost all users, the link resolves to a URL in the form of https://script.googleusercontent.com/a/macros/xxxxx/echo?user_content_key=<string>&lib=MxCG-Sk-HF4ilQO-Kv7w6fINeS3Mb45sS#EditEvaluation, which then goes to a page that just has the "Sorry, you don't have access to this application" message.
If I copy and paste the full correct URL (https://www.google.com/url?q=https://script.google.com/a/xxxxx/macros/s/<correct script ID>/exec?evalId%3D823%23EditEvaluation) into a new tab, it goes to the same error.
The only time this error doesn't come up is when I'm logged in as the Admin user -- I can click on an email link or copy and paste the link into a new tab, and it loads just fine.
Here's what I've checked:
In the deployment settings, the app runs under the user's account, and application access is not restricted.
Access to the data models involved, as well as to all associated relations, is set to Everyone.
Security for the page involved is set to Everyone.
There are no permission-related bindings for visible or enabled anywhere on the target page.
Can anyone else see something I'm overlooking?

How to obtain/create/update service credentials on IBM push service

We created a push notification application service over a year ago, before there was a need for appGuid and client secret. However, now we need the client secret and app guid to work with a new application.
When we try to create the credentials, by using the dialog generated by 'New credential' button we end up getting null just like the image below.
Image with null for credentials
Is there any way to update the credentials without needing to create a new service.
Thanks.
Open your Push notification app and navigate to Manage->Configure and click on Mobile options to obtain the appSecret, clientSecret and appGuid.
Based on #Neeraj comment, You can get to your credentials by going to your push notification instance, then clicking manage on the outer left panel, then click Configure on the inner left panel and finally click on the Mobile options button.

How to perform actions on iframe after logging from popup window?

Web driver need to perform the following actions:
Click on a button from iFrame a popup window opens.
Enter the credentials then the popup automatically closes and user is logged in.
Perform some action as logged in user in the iFrame.
I am able to perform first two steps but when I try to perform on the iFrame as logged in user facing the below error:
com.thoughtworks.selenium.SeleniumException: Session [38d070ab-dde8-4b7a-8f19-043ef05dc1cc] has no driver. The browser window may have been closed.
Please mention if there is any work around?
Thanks
You need to switch back to the original window to perform actions there after your pop up is closed.
As Santosh said use driver.switchTo.defaultContent()!

Resources