Community discussions

MikroTik App
 
rbTest1
just joined
Topic Author
Posts: 13
Joined: Fri Sep 21, 2018 11:12 am

Captive Portal API RCF8908

Tue Jun 08, 2021 1:27 pm

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
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Captive Portal API RCF8908

Tue Jun 08, 2021 7:45 pm

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
}
 
rbTest1
just joined
Topic Author
Posts: 13
Joined: Fri Sep 21, 2018 11:12 am

Re: Captive Portal API RCF8908

Wed Jun 09, 2021 9:02 am

Great, but .. "venue-info-url" ?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Captive Portal API RCF8908

Wed Jun 09, 2021 9:58 am

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.
 
sturb
just joined
Posts: 1
Joined: Tue Jun 08, 2021 4:07 pm

Re: Captive Portal API RCF8908

Wed Jun 09, 2021 11:20 am

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?
 
rbTest1
just joined
Topic Author
Posts: 13
Joined: Fri Sep 21, 2018 11:12 am

Re: Captive Portal API RCF8908

Thu Jun 10, 2021 10:33 am

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/
 
rbTest1
just joined
Topic Author
Posts: 13
Joined: Fri Sep 21, 2018 11:12 am

Re: Captive Portal API RCF8908

Thu Jun 10, 2021 12:45 pm

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
 
alexwinners
just joined
Posts: 1
Joined: Wed Aug 18, 2021 11:58 am

Re: Captive Portal API RCF8908

Wed Aug 18, 2021 12:07 pm

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
 
rbTest1
just joined
Topic Author
Posts: 13
Joined: Fri Sep 21, 2018 11:12 am

Re: Captive Portal API RCF8908

Thu Nov 04, 2021 9:21 am

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
 
olivier2831
Member Candidate
Member Candidate
Posts: 296
Joined: Fri Sep 08, 2017 6:53 pm

Re: Captive Portal API RCF8908

Thu Nov 04, 2021 11:02 am

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 ?
 
rbTest1
just joined
Topic Author
Posts: 13
Joined: Fri Sep 21, 2018 11:12 am

Re: Captive Portal API RCF8908

Thu Nov 04, 2021 11:59 am

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
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Captive Portal API RCF8908

Mon Nov 08, 2021 12:48 pm

[...]
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.
[...]

Who is online

Users browsing this forum: loloski and 84 guests