Page 1 of 1

Captive Portal API RCF8908

Posted: Tue Jun 08, 2021 1:27 pm
by rbTest1
Hi to all,

did mikrotik have any info on Captive Portal API ?

this is the RCF
https://datatracker.ietf.org/doc/html/rfc8908

android 11 implementation
https://developer.android.com/about/ver ... ive-portal

Apple IOS 14.x
https://developer.apple.com/news/?id=q78sq5rv

Thanks for any suggestions

Re: Captive Portal API RCF8908

Posted: Tue Jun 08, 2021 7:45 pm
by rextended
are added on 6.49beta46

api.json

json code

{
   "captive": $(if logged-in == 'yes')false$(else)true$(endif),
   "user-portal-url": "$(link-login-only)",
$(if session-timeout-secs != 0)
   "seconds-remaining": $(session-timeout-secs),
$(endif)
$(if remain-bytes-total)
   "bytes-remaining": $(remain-bytes-total),
$(endif)
   "can-extend-session": true
}

Re: Captive Portal API RCF8908

Posted: Wed Jun 09, 2021 9:02 am
by rbTest1
Great, but .. "venue-info-url" ?

Re: Captive Portal API RCF8908

Posted: Wed Jun 09, 2021 9:58 am
by rextended
The file is editable.
You can add anything you want.

I do not know more, I'm not following HotSpot,
for me is a dead market.
Any time spent on this do not have any proper revenue.
2,4GHz spectrum are dead and LTE/5G technologies on every device, make HotSpot useless.

Re: Captive Portal API RCF8908

Posted: Wed Jun 09, 2021 11:20 am
by sturb
Hello,
https://help.mikrotik.com/docs/pages/vi ... d=56459266 According article it works automaticaly: This DHCP option field is enabled automatically, but only if the router has a DNS name configured and has a valid SSL certificate (so that the login page can be accessed over HTTPS). When these requirements are met, a special DHCP option will be sent, containing a link to https://<dns-name-of-hotspot>/api. This link contains information in JSON format, instructing the client device of the captive portal status, and the location of the login page.
I've not made CCR1009 do it. I setuped certificate and DNS name, but https://dnsname/api responds "404 not found". There's not editable api.json. Has anybody done it?

Re: Captive Portal API RCF8908

Posted: Thu Jun 10, 2021 10:33 am
by rbTest1
Starting an HotSpot from scratch does api.json in "files", that's ok

the question is :
How can i "notify" on Android 11 + or IOS 14.xx + and open a REGULAR BROWSER instead of Native UI Webview auto-open ?

I need to bypass Native Browser at Captive Portal Login on Android and IOS.

example of what i need : https://globalreachtech.com/ietf-cappor ... reachtech/

Re: Captive Portal API RCF8908

Posted: Thu Jun 10, 2021 12:45 pm
by rbTest1
i mean, did Mikrotik implemented DHCP force reply 114 ?

DHCP Option: 114 (Captive-Portal)
Length: 38
Value: https://example.org/captive-portal/api

dhcp-option-force=114,https://example.org/captive-portal/api

How can i manually "dhcp-option-force" ?

answer : viewtopic.php?t=92799

Please Mikrotik send us update !!!

Thanks

Re: Captive Portal API RCF8908

Posted: Wed Aug 18, 2021 12:07 pm
by alexwinners
Dear all,

We have configured option 114 successfully.
Now on the Android 11 smartphone the captive portal is triggered and we can log in and we can navigate.
In any case, after authentication, the wifi network does not recognize successful authentication and prompts us to log in with the wifi symbol with an exclamation / question mark.

What can be done to communicate the successfullly connection to the device?

thank you

Re: Captive Portal API RCF8908

Posted: Thu Nov 04, 2021 9:21 am
by rbTest1
Hi,

the problem is that even if "venue-info-url" can be updated on api.json the corresponding Captive Portal API "NOTIFICATION" is NEVER TRIGGERED by mikoritk HotSpot.
in other words Mikrotik do not comply with the CAPTIVE PORTAL SPECIFICATION, and do not NOTIFY the Captive Portal (Notify mean OS NOTIFICATION with INTENT --> to venue-info-url)

when user connet to Captive Portal, the EVENT shold be triggered and the corresponding NOTIFICATION MUST APPEAR and link to "venue-info-url" as reported on this site (look at the image)
https://globalreachtech.com/ietf-cappor ... reachtech/

Mikrotik simply does not show the notification, this is USELESS

Google, FB and all the other are going to REMOVE LOGIN FROM INTERNAL WEBVIEW.
If this "notification" will not be "focused" nobody will ever be able to login using OAuth2 in a few months

Thanks for coop

Re: Captive Portal API RCF8908

Posted: Thu Nov 04, 2021 11:02 am
by olivier2831
Google, FB and all the other are going to REMOVE LOGIN FROM INTERNAL WEBVIEW.
If this "notification" will not be "focused" nobody will ever be able to login using OAuth2 in a few months
Can you elaborate a bit ?
Any pointer to Google or FB intents on the matter ?

Re: Captive Portal API RCF8908

Posted: Thu Nov 04, 2021 11:59 am
by rbTest1
this is what Google reported today

https://developers.googleblog.com/2021/ ... point.html

take a look at "Captive Portal" : Drop Support !!!

FB is going to do the same, all the others will follow

Re: Captive Portal API RCF8908

Posted: Mon Nov 08, 2021 12:48 pm
by rextended
[...]
HotSpot,
for me is a dead market.
Any time spent on this do not have any proper revenue.
2,4GHz spectrum are dead and LTE/5G technologies on every device, make HotSpot useless.
[...]