You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2018-08-22 13:12:48

bsz
Member
Registered: 2018-08-16
Posts: 4

Enrollment process [glpi 9.3.0, FI 9.3+1.1, flyvemdm 2.0.0-rc.1]

Good day,

I'm at this point in the Documentation.
https://flyvemdm-doc.readthedocs.io/en/ … ocess.html

Is this line equivalent

http://api.domain.com/aHR0cDovL2FwaS5kb21haW4uY29tLzs0NWVyamJ1ZGtscTU4NjVzZGtqaGprcztsa2hqZmtnc2RmNTQ2NjM0cztjb21wYW55J3MgaGVscGRlc2s7MDMzMTIzNDU2Nzg5O2h0dHBzOi8vc3VwcG9ydC5jb21wYW55LmNvbTtzdXBwb3J0QGNvbXBhbnkuY29t

to

http://glpi-test-ip/apirest.php/?data=aHR0cDovL2FwaS5kb21haW4uY29tLzs0NWVyamJ1ZGtscTU4NjVzZGtqaGprcztsa2hqZmtnc2RmNTQ2NjM0cztjb21wYW55J3MgaGVscGRlc2s7MDMzMTIzNDU2Nzg5O2h0dHBzOi8vc3VwcG9ydC5jb21wYW55LmNvbTtzdXBwb3J0QGNvbXBhbnkuY29t

I think i'm missing something, thank you.

Last edited by bsz (2018-08-22 13:14:36)

Offline

#2 2018-08-22 14:47:31

btry
Moderator
Registered: 2015-10-01
Posts: 591

Re: Enrollment process [glpi 9.3.0, FI 9.3+1.1, flyvemdm 2.0.0-rc.1]

Hi

the two examples are not equal.

the first url seems a copy paste from the documentation, and the t arget is the deeplink micro-service (https://github.com/flyve-mdm/deeplink). This service is a helper to distinguish a computer from a mobile device (and its mobile OS) for the enrollment process.

If you're setting up Flyve, the plugin contains a setting to specify the url to the deeplink micro-service. This is an instance we host, and you can use it freely. If you  want to host the micro-service yourself, build it and run it on your own infrastructure. In such case you must change the URL in the configuration of the plugin for GLPI.

The micro-service is used when an user taps or clicks the url in the invitation email he received.

The second url you show will not work. It targets an instance of GLPI, and will not "understand" the data you provided. This is normal.

Last edited by btry (2018-08-22 14:48:31)


No support with MP - Always run an upgrade task on a testing instance before running it on production! Always backup before any upgrade task!

Offline

#3 2018-08-22 15:00:18

bsz
Member
Registered: 2018-08-16
Posts: 4

Re: Enrollment process [glpi 9.3.0, FI 9.3+1.1, flyvemdm 2.0.0-rc.1]

Ahh,

Is see,

that was the missing link,

thank you very much.

Last edited by bsz (2018-08-22 15:01:09)

Offline

#4 2018-08-22 15:08:42

btry
Moderator
Registered: 2015-10-01
Posts: 591

Re: Enrollment process [glpi 9.3.0, FI 9.3+1.1, flyvemdm 2.0.0-rc.1]

you're welcome. By the way you may join us on our community group on telegram: https://t.me/flyvemdm . we are here, and users requesting assistance as well. Users may help themselve in live.

Last edited by btry (2018-08-22 15:09:02)


No support with MP - Always run an upgrade task on a testing instance before running it on production! Always backup before any upgrade task!

Offline

#5 2018-08-29 14:11:41

bsz
Member
Registered: 2018-08-16
Posts: 4

Re: Enrollment process [glpi 9.3.0, FI 9.3+1.1, flyvemdm 2.0.0-rc.1]

Good day,

i'm back from my Holidays.

I haven't telegram :/

I had set up that glpi/deeplink site and specified the "Invitation deeplink url" to

http://glpi-test-ip/deeplink/

When opening that invitation deeplink (example) in my Browser:

http://glpi-test-ip/deeplink/?data=aHR0cDovL2FwaS5kb21haW4uY29tLzs0NWVyamJ1ZGtscTU4NjVzZGtqaGprcztsa2hqZmtnc2RmNTQ2NjM0cztjb21wYW55J3MgaGVscGRlc2s7MDMzMTIzNDU2Nzg5O2h0dHBzOi8vc3VwcG9ydC5jb21wYW55LmNvbTtzdXBwb3J0QGNvbXBhbnkuY29t

It shows me similar site to:

On a Test-Device (AVD doesn't work) after running android-mdm-agent 2.0.0-rc.3 i scanned that QR-Code, tapped enroll, a loading circle appeared...
And yea, thats it.
At this point it gets stuck.
Even apache access log was quiet (or other files/_log/*) ...


I think i could need more input in configuring that micro service.

deeplink/index.html do i need this lines?

40        <script 
41            src="/js/bugsnag-3.min.js"
42            data-apikey="fab38c004e4e4cf378f09b64bf2929f6"
43      ></script>

edited:

src="/js/bugsnag-3.min.js"

to

src="js/bugsnag-3.min.js"

because of http error 400
200 since editing

data-apikey let it, or where to get it?

edited line 49

48        <script>
49           if (getData("data") == undefined) window.location = 'http://flyve.org/'
50        </script>

and deeplink/js/script.js line

20        var deeplink = `flyve://register?data=${data}`

edit or let it? (is this for the flyve-mdm-agent?)


I didn't check:
tl;dr deeplink/js/bugsnag-3.min.js
tl;dr deeplink/js/qrious.js
and deeplink/js/getData.js
but i think they work as intended.


thank you.

Edit:
Just for testing/checking purpose on flyvemdm-backend side.
Between the lines, because Device/flyvemdmagent gets stuck.
https://flyvemdm-doc.readthedocs.io/en/ … l#deeplink
put

alert(decodedData);

at the end of js/script.js
got something like this (example):

http://glpi-test-ip/apirest.php,45erjbudklq5865sdkjhjks,zMTIzNDU2Nzg5O2h0dHBzOi8vc3VwcG9ydC5jb21wYW55LmNvbTtzdXBwb3J0QGNvbXBhbnkuY29t,,,,

made somewhat like this out of it (example):

http://glpi-test-ip/apirest.php/initSession?user_token=45erjbudklq5865sdkjhjks

after C&P into the Browser i got session_token (example):

session_token:    "83af7e620c83a50a18d3eac2f6ed05a3ca0bea62"

Edit2:
No bugsnag.
Commented deeplink/index.html lines

<!--
40        <script 
41            src="/js/bugsnag-3.min.js"
42            data-apikey="fab38c004e4e4cf378f09b64bf2929f6"
43      ></script>
-->

Last edited by bsz (2018-08-31 15:53:11)

Offline

#6 2018-08-30 10:06:43

btry
Moderator
Registered: 2015-10-01
Posts: 591

Re: Enrollment process [glpi 9.3.0, FI 9.3+1.1, flyvemdm 2.0.0-rc.1]

Hi

The lines between 40 and 43 are for a bug collector. You may remove it if you don't use a bug collector.

I reported an issue about the leading slash in the project's repository. https://github.com/flyve-mdm/deeplink/issues/28

About your addition to your post, I don't understand why you tried to generate yourself requests to the API of GLPI. This is the job of the mdm agent.


No support with MP - Always run an upgrade task on a testing instance before running it on production! Always backup before any upgrade task!

Offline

#7 2018-09-05 13:33:22

bsz
Member
Registered: 2018-08-16
Posts: 4

Re: Enrollment process [glpi 9.3.0, FI 9.3+1.1, flyvemdm 2.0.0-rc.1]

Hello,
now enrollment works well.

I like that centralized config.js and installation hint.

Thank you very much smile

Offline

Board footer

Powered by FluxBB