ServiceM8 API disabled? - get

myClientID & myURL are just placeholders for real values.
It seems that API access is inconsistent.
I was working on this last night, and it was working fine.
I would do a GET to the URL below:
https://www.servicem8.com/oauth/authorize?response_type=code&client_id=myclientID&scope=read_jobs&redirect_uri=http://myURL
This would pop-up an authorization screen where I would enter username & password
Then a pop-up would appear that with an “ALLOW” button
Once I clicked ALLOW it would forward to our website http://myURL
It also appended code=random-generated-temp-code&state= to the end of the URL
I then executed a POST command to generate the access_token from the temp-code
Today the form that asks the user to ALLOW does not pop-up, and so it does not generate the temp-api-code

Related

Facebook 'Continue' button misplaced in Chrome Extension oauth popup

I'm using chrome.identity.launchWebAuthFlow to start the login flow and when the user oauths with Facebook, the bottom 'Continue' button is partially out of the view. When the user has to enter an email and password for the first time, it's fine, but when Facebook asks only for the password the next time, the issue occurs. Also on the 'Forgotten you password?' page.
Since chrome.identity.launchWebAuthFlow doesn't allow to set size, and resizing the window manually moves the button, but at the same misplaced position, I see it as a clear sign that it's Facebook's code or the chrome.identity.launchWebAuthFlow's window's quirk.
When opening up the same auth url in a real browser window, the button is placed at the right place.
Anyone else came across this issue? Is there any good workaround?

Instagram Authorization URL Has No Cancel Option

We're writing a Windows 10 application that has integration with Instagram, and when directing the user to https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=token, there isn't a cancel button for the user when presented with the authentication dialog. This proves problematic when running in tablet mode, as Microsoft hides the header bar of the WebAuthenticationBroker dialog containing the "X" to cancel out of it. Is there a URL we could use (or perhaps a query param) that would render a cancel button of sorts that would redirect to the callback URL?

How to prevent browsers from remembering last logged user?

Let me start off with these sources I have found that are not helpful to me, because they are not asking the same thing, no matter how similar it might sound:
Disabling Chrome Autofill
Disable form autofill in Chrome without disabling autocomplete
Google Chrome form autofill and its yellow background
How do I stop Chrome from pre-populating input boxes?
And recently:
Should autocomplete="off" be used for all sensitive fields?
Essentially, these threads all suggest browser settings & adding the attribute autocomplete='off'. This is not a valid solution for me nor is it the issue that I am having. My issue is as follows:
Using Incognito Mode in Chrome:
User A clicks on "Patient Portal" to bring them to the login page. (Good)
User A logs into their account by filling in their email & password. (Good)
User A logs out of their account & is brought back to the Kiosk home page. (Good)
User B clicks on "Patient Portal" to bring them to the login page. (Good)
User B sees User A's email filled in the email field. (BAD)
User B can remove User A's email from the field & enter their own without Chrome's suggestions of previously entered emails.
It is not okay to retain a users email address on a public computer, how might I fix this issue?
Another developer was dynamically adding in the last logged email into the email field in a php file I did not have access to.
-_-

Excel VBA - passing username & password to Web Query connection

We have a web query on an Excel worksheet that goes to MoneyFacts (Moneyfacts website) for the latest Bond & ISA savings rates.
The rates page requires a login by username and password before the rates page is shown (as it's a subscription site).
Through trial and error and looking at the soruce of the login page, I was able to determin that I need to add these symbols to the connection:
User Name: ctl00$body$txtUsername
Password: ctl00$body$txtPassword
so I changed thec onnection property of the datatable as below:
sheets("ISA 3Yr").range("A12").QueryTable.Connection="URL;http://analyser.moneyfacts.co.uk/savings/forms/frmDashboard.aspx?symbol=[""body_txtUsername""]”&symbol=[""body_txtPassword""]”&did=37&module=2&tocfilter=15&view=2&rerun=92680f6c-9fcc-4585-9b2a-aaf9b281cf88"
Now, when we click refresh All on the ribbon the first time, the dialogs are shown so we can enter the username and password. Each time we chose entered the data and the web query refreshed.
But the next time, without asking for the login, it fails.
How can we pass parameters to web queries properly ?
Either you pass parameters in the query string portion of the web url, so in your example you have did=37&module=2&tocfilter=15&view=2& which is a series of key value pairs which gives
did=37
module=2
tocfilter=15
view=2
or they are posted in the HTTP header. You'll need an HTTP sniffer tool to investigate further. I used Fiddler at http://www.telerik.com/fiddler and it is quite good.

Have you ever seen as i have checked session behaviour in gmail.com ? Please help?

Yesterday morning i open gmail account in Internet Exlorer second tab. I checked my mail and closed that tab (not browser).
Then at the time of evining i again open second tab of browser and enetr gmail.com, it automatically redirect me at my email account without asking login.
I shocked and i thought i should remain browser open for whole night and today open gmail in second tab , it behave similar means without login screen it redirect in my gmail account.
Then i closed that tab and open another browser session and enter gmail i again surprised that i redirect me login page. At the same time i open second tab of first browser and it automatically redirect me at mail account page.
What i councluded by this behaviour is that might be gmail server keep my browser id at their server so that whenever i eneter gmail.com on second tab of first browser, it automatically redirect me at gmail account. I don't know i am right or not?
Please clear me this concept? What happens with my session at gmail server when i closed my browser tab?
As per my opinion it should automatically logout me but why this doesn't happened?
You probably ticked the option "stay signed in" the last time you logged in. Go back to gmail, click log out, and log in again, making sure that option is not ticked. Close the tab, come back in an hour, and open gmail again. You should be at the login screen this time.

Resources