OK so once you get your device UUID you need to: on mergBLEDidDiscoverPeripheral pPeripheral, pName, pRSSI mergBLEConnectPeripheral pPeripheral end mergBLEDidDiscoverPeripheral on mergBLEDidConnectPeripheral pPeripheral mergBLEPeripheralDiscoverServices pPeripheral end mergBLEDidConnectPeripheral on...

Hi @dan.toadllc You can use the `return` statement in either a function or custom component. It's probably simpler to leave the XML in LiveCode and access it from FileMaker although you could return it all as text if you want. So your custom component might be something like this: on FileMakerAction...

Regarding the cancelled page you could ask them why that is not going to the redirect URI if the same code is logging in and sending credentials to the redirect URI. That's different to the other services. The example was just for slack yes. Once you have the auth token you would need to set the Aut...

Hi There was an issue in your code. You can't set the value of a script local like that. Try this (I get a login page with this!): constant kAuthURL = "https://authorization.sandboxcerner.com/tenants/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca/protocols/oauth2/profiles/smart-v1/personas/provider/authorize"...

The problem is the authentication is being rejected before it even has a chance to present the login page. That's why you get the dialog flashing up. So we need to work out what's wrong with the parameters.

My reading of it is it must be `launch/profile` rather than just `launch` in the scope.

Aha! So it looks like there's an extra step involved here http://docs.smarthealthit.org/authorization/ See the section labeled SMART “launch sequence” I presume you need the Standalone launch sequence So you must request the metadata in order to get the OAuth endpoints (perhaps there's a reason not ...