Hi Eduardo,
When we talk about proximity login, keep in mind that we will always have two parties involved.
1. The device that was already registered and authenticated, and the one that will authorize other devices.
2. The device that was not registered and authenticated, and waiting for other devices to authorize itself.
For a simplicity, I will call #1 as authorizing device, and #2 as authenticating device.
I am not exactly sure how you are trying to do the proximity login, but the expected flow is as follow:
1. Authorizing device should be authenticated against user credentials
2. Authenticating device should not be authenticated or registered at the moment, and the OAuth client of the authenticating device should register "msso_register" scope if the device was not registered.
3. Authenticating device will display the QR Code from the MASAuthenticationProvider object which has identifier "qrcode".
4. Authorizing device will scan the QR Code, and will invoke the content of QR code (which should be URL format), if the payload is passed to MASProximityLoginQRCode.authorize.
5. If the result of MASProximityLoginQRCode.authorize is 200, authenticating device should be able to retrieve the authorization code which can be consumed to register the device, or authenticate the user.
Of course, for the authenticating device, there are a lot of things that you need to prepare such as setting polling interval, displaying the QR code with limits, and etc; however, if you use MASUI framework for your solution, all of these from authenticating device perspective should simply be handled through default login screen.
This is high level overview of QR Code proximity login. I am not entirely sure if you were scanning QR code and invoking MASProximityLoginQRCode.authorize with the device which was authenticated and registered as client credentials, but if that's the case, then that's probably the wrong approach for the QR Code Proximity Login.
Please elaborate little bit more on how you were trying to establish this QR Code proximity login, so that I can pinpoint where the problem is.
Thanks,