mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-02 06:55:26 +00:00
98_GoogleAuth.pm: commandref updated
git-svn-id: https://svn.fhem.de/fhem/trunk@23628 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1af9f6642d
commit
5947b26a8f
@ -336,12 +336,6 @@ sub gAuth {
|
|||||||
using three timestamps: -30 seconds, now and +30 seconds.<br/>
|
using three timestamps: -30 seconds, now and +30 seconds.<br/>
|
||||||
This behavior can be changed by attribute ga_strictCheck.</li>
|
This behavior can be changed by attribute ga_strictCheck.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<br/>
|
|
||||||
</li>
|
|
||||||
<li><code>gAuth(<name>,<token>)</code><br/>
|
|
||||||
<br/>
|
|
||||||
For easy use in your own functions you can call function gAuth(),<br/>
|
|
||||||
which will return same result codes as the "get" command.
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<br/>
|
<br/>
|
||||||
@ -372,6 +366,28 @@ sub gAuth {
|
|||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
|
<b>Integration with gAuth()</b><br/><br/>
|
||||||
|
<ul>
|
||||||
|
<li><code>gAuth(<name>,<token>)</code><br/>
|
||||||
|
<br/>
|
||||||
|
For easy use in your own scenarios you can call function gAuth(),<br/>
|
||||||
|
which will return same result codes as the "get" command.
|
||||||
|
</li>
|
||||||
|
<br/>
|
||||||
|
<li>Usage of gAuth() for login to FHEM<br/>
|
||||||
|
<br/>
|
||||||
|
A device of TYPE=allowed can be used to secure login to FHEM via basicAuth.<br/>
|
||||||
|
<code>attr <deviceName> basicAuth { "$user" eq "xxx" && gAuth("GoogleAuth","$password","<deviceName>") == 1 }</code><br/>
|
||||||
|
<br/>
|
||||||
|
In both cases <deviceName> has to be the name of the allowed-TYPE device.<br/>
|
||||||
|
The authenticated login will be cached for this device for a maximum period of 86400 seconds.<br/>
|
||||||
|
Do not use basicAuthExpiry in this scenario!<br/>
|
||||||
|
The cache will be lost after FHEM restart or after any invalid token checked by the named allowed-TYPE device.<br/>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
=end html
|
=end html
|
||||||
=begin html_DE
|
=begin html_DE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user