mirror of
http://gitea.phreedom.club/localhost_frssoft/pleroma-cli
synced 2024-11-25 11:51:28 +00:00
No create app session if already exists
This commit is contained in:
parent
fd21b04bc1
commit
eab20a07c6
|
@ -28,13 +28,15 @@ fi
|
||||||
|
|
||||||
auth_api_create_client()
|
auth_api_create_client()
|
||||||
{
|
{
|
||||||
curl -s --compressed --url $instance_point/apps \
|
if [ ! -e ".app_sessions/$instance" ]; then
|
||||||
--data-urlencode 'client_name=pleroma-cli' \
|
curl -s --compressed --url $instance_point/apps \
|
||||||
--data-urlencode 'redirect_uris=urn:ietf:wg:oauth:2.0:oob' \
|
--data-urlencode 'client_name=pleroma-cli' \
|
||||||
--data-urlencode 'scopes=read write follow' \
|
--data-urlencode 'redirect_uris=urn:ietf:wg:oauth:2.0:oob' \
|
||||||
--data-urlencode 'website=https://gitea.phreedom.club/localhost_frssoft/pleroma-cli' \
|
--data-urlencode 'scopes=read write follow' \
|
||||||
--output .app_sessions/$instance
|
--data-urlencode 'website=https://gitea.phreedom.club/localhost_frssoft/pleroma-cli' \
|
||||||
chmod 600 .app_sessions/$instance
|
--output .app_sessions/$instance
|
||||||
|
chmod 600 .app_sessions/$instance
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
auth_api_get_code()
|
auth_api_get_code()
|
||||||
|
|
Loading…
Reference in a new issue