help to get token

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • Gast

    #1

    help to get token

    hi

    thanks in advanced for your help

    when i'm in a final step to get token ,


    =>> Request a JSON Web Token “jdev/sys/getjwt/{hash}/{user}/{permission}/{uuid}/{info}” ○ This request must be encrypted. Unencrypted getjwt requests will be declined with 400 Bad Request.

    i have a response with bad request.

    my question is, what is the request that i have to encrypt?

    jdev/sys/getjwt/{hash}/{user}/{permission}/{uuid}/{info} ?
    or
    getjwt/{hash}/{user}/{permission}/{uuid}/{info} ?


    i have a complete url with the hash and user and permission(...) if you need to understand.

    best regards
    Luis
  • Xenobiologist
    Lox Guru
    • 15.01.2016
    • 1117

    #2

    Maybe you just need to URIencode your string. In Autoit a function looks like this:

    Code:
    Func _URIEncode($sData)
    ; Prog@ndy
    Local $aData = StringSplit(BinaryToString(StringToBinary($sData, 4), 1), "")
    Local $nChar
    $sData = ""
    For $i = 1 To $aData[0]
    ; ConsoleWrite($aData[$i] & @CRLF)
    $nChar = Asc($aData[$i])
    Switch $nChar
    Case 45, 46, 48 To 57, 65 To 90, 95, 97 To 122, 126
    $sData &= $aData[$i]
    Case 32
    $sData &= "%20" ; Anpassung Xenobiologist (&20 anstatt +)
    Case Else
    $sData &= "%" & Hex($nChar, 2)
    EndSwitch
    Next
    ConsoleWrite($sData & @CRLF)
    Return $sData
    EndFunc ;==>_URIEncode
    Node-RED mit influxDB und Grafana - z.B. Statistiken auslagern:
    https://www.loxforum.com/forum/germa...d-grafana-visu
    Mit Loxone einen Windows-PC steuern:
    https://www.loxforum.com/forum/faqs-...indows-steuern

    Kommentar

    Lädt...