Project

General

Profile

Actions

Bug #12780

open

Cannot change Oauth token expiry time in QR code generation

Added by Arshana Atapattu 7 days ago.

Status:
New
Priority:
Medium
Assignee:
-
Start date:
26/03/2025
Due date:
% Done:

0%

Estimated time:
Device Type:
Component:
Type:

Description

Environment details
Staging server 6.4.0

Prerequisites
Need to configure Oauth in the platform configuration.
untick the "Authentication Type" in the platform configuration -> android configuration [1]

Steps
Go to Enroll device page.
select "Enroll using QR"
click on next.
click on configure network.
set the token expiration time [2]
then update
generate the QR code.

Description
When token expiration time increased, the created token is set to 1 hour by default [3]. payload of the QR code: [4]
This expiration time should be the time that specified in "token expiration time" field.

Result

[1]
[1]

[2]
[2]

[3]
[3]

[4] {
"android.app.extra.serverIp": "https://uem.gw.entgra.net:443",
"android.app.extra.token": "eyJ4NXQiOiJNV0l5TkRJNVlqRTJaV1kxT0RNd01XSTNOR1ptTVRZeU5UTTJOVFZoWlRnMU5UTTNaVE5oTldKbVpERTFPVEE0TldFMVlUaGxNak5sTldFellqSXlZUSIsImtpZCI6Ik1XSXlOREk1WWpFMlpXWTFPRE13TVdJM05HWm1NVFl5TlRNMk5UVmhaVGcxTlRNM1pUTmhOV0ptWkRFMU9UQTROV0UxWVRobE1qTmxOV0V6WWpJeVlRX1JTMjU2IiwidHlwIjoiYXQrand0IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImF1dCI6IkFQUExJQ0FUSU9OX1VTRVIiLCJhdWQiOiJYdXlKQTNVdm1VVm9mc2ZJcElVYzQ2Wks2aVVhIiwibmJmIjoxNzQyOTczMjIxLCJhenAiOiJYdXlKQTNVdm1VVm9mc2ZJcElVYzQ2Wks2aVVhIiwic2NvcGUiOiJkZWZhdWx0IiwiaXNzIjoiaHR0cHM6XC9cL3VlbS5tZ3QuZW50Z3JhLm5ldDo0NDNcL29hdXRoMlwvdG9rZW4iLCJleHAiOjE3NDI5NzY4MjEsImlhdCI6MTc0Mjk3MzIyMSwianRpIjoiZWVkMGQ1MmItZDU3My00MjllLWJlMmQtYjU2YjBkMjRhZjliIiwiY2xpZW50X2lkIjoiWHV5SkEzVXZtVVZvZnNmSXBJVWM0NlpLNmlVYSJ9.x0kL7CT01O4y_fwN0tBzZEq0b5iD5mbP7Il_l6vlZW5VddWxWJNo4x8MTvqeMVw9FXMDzj6c3U2nQvP2gIrQVDz4Ocx8OJ9-Qh7hhBuAGJyUIEikt_KrUIB7snTQvzAQFnecoZBniYg_91lV2AjA68tnyeOMu-A8Yfwomxr7pUzq4REnC1hoW8KkTcEe_hCgZ3QJTEh6IjncR225pcfvAq2IEyIMA57yD11PSFhD6JISSR6tRYckPxDkqKzWosq_qanHVK-aB2SpHFNYW9aoeDaSyQgPC4kFKSnXf7LPeJm5qofse9HJ4Nkec36TzGabxFSLV9wShqR6U-CgWgMKXw",
"android.app.extra.token.expiry": 3600,
"android.app.extra.defaultOwner": "BYOD"
}


Files

No data to display

Actions

Also available in: Atom PDF