- Created by Seibert Media employee, last updated by Administrator on Nov 15, 2024 2 minute read
Documentation's navigation
On this page
Especially in large companies, many employees who do not have their own desktop workstation have to be granted access to the Linchpin intranet on a mobile basis. In addition, there is the challenge that these employees do not use a mobile device managed by the company, so that a BYOD strategy (Bring Your Own Device) must be pursued.
To simplify the onboarding of colleagues for Confluence administrators, it is possible to generate authorization tokens for mobile login via a script directly from Linchpin. These tokens can be created per Confluence user and then converted into a QR code, which can be used by the employee for mobile login via the Linchpin Mobile Gateway.
Requirements
Make sure to establish a connection between your Linchpin instance and the Linchpin Mobile Gateway in order for the following tutorial to work. Please refer to this step-by-step guide for how to connect with the Linchpin Mobile Gateway.
Complete generation tool
We have created a tool based on JS/node to help you automate the mass creation of qr-codes. It is able to generate the tokens and print QR-Codes as file which you can use directly. The code also could help you as orientation to code a solution in your own dev-environment.
Example for generating user logins as a Confluence administrator using a curl statement
Please note that the following example is intended to illustrate the control of the Rest API. Running the script with the correct parameters creates an access for a given Confluence user that can then be used with the Linchpin Mobile apps. It is possible to address this Rest API call in any programming language.
curl -i -X PUT \
--basic \
--user [admin_username]:[admin_password] \
-H "Content-Type:application/json" \
-d '{"userName":"[username]","expiry":[time_to_expire_in_hours],"qrcodetype":1}' \
'https://[confluence_base_url]/rest/linchpin-mobile/1.0/firescope/user/qrcode'
The following parameters are to be set here:
- Authentication as username and password for an administrative account
- Confluence username of the user for whom the mobile access should be created
- Validity period of the QR access code in hours (min 1; max 999)
- Confluence base URL
The interface then returns a text block, which can be converted into a corresponding QR code using a QR code generator. This code can now be issued to employees and scanned by end users with the app.
Example return:
{"device_id":"9104cfc1df.....5fb7c14065f0ab","device_setup_key":"2.........c66c16e2655dd0","user_name":"pwinter","auth_token":".....5-23a1-.....-9077-.....f8d9be","client_url":"firescope-1.seibert-media.net","system_name":"Mobile+Test","secret_key":"xyz==","init_vector":"fjhsdfkjshfdkj=="}

☁️ Looking for a Cloud-based Intranet?
Check out Mantra, your go-to alternative to Linchpin in the Atlassian Cloud!
Mantra is your a comprehensive solution for connecting teams, making collaboration a breeze, and keeping your company's internal communication strong and streamlined - all in the cloud.
Test the intranet for Confluence Cloud now for free:
Link to this page: https://seibert.biz/linchpinmobileonboardingscript
This content was last updated on 11/15/2024.
This content hasn't been updated in a while. That doesn't have to be a problem. Some of our pages live for years without becoming obsolete.
Old content can be incorrect, misleading or outdated. Please get in contact with us via a form on this page, our live chat or via email with content@seibert.group if you are in doubt, have a question, suggestion, or want changes from us.