Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
d940f173
Commit
d940f173
authored
Dec 20, 2021
by
racitup
Browse files
fix: token request body quoting
parent
6351b5d0
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_mythic_beasts.sh
View file @
d940f173
...
@@ -166,7 +166,6 @@ _initAuth() {
...
@@ -166,7 +166,6 @@ _initAuth() {
# authentication. This works arounds this by using an undocumented MB API to obtain a token not tied to an
# authentication. This works arounds this by using an undocumented MB API to obtain a token not tied to an
# IP just for the github tests.
# IP just for the github tests.
_oauth2
()
{
_oauth2
()
{
_info
"DOMAIN:
$TEST_DNS
"
if
[
"
$TEST_DNS
"
!=
"dns_mythic_beasts"
]
;
then
if
[
"
$TEST_DNS
"
!=
"dns_mythic_beasts"
]
;
then
_oauth2_std
_oauth2_std
else
else
...
@@ -204,7 +203,7 @@ _oauth2_std() {
...
@@ -204,7 +203,7 @@ _oauth2_std() {
_oauth2_github
()
{
_oauth2_github
()
{
_H1
=
"Accepts: application/json"
_H1
=
"Accepts: application/json"
export
_H1
export
_H1
body
=
"{
\"
login
\"
:{
\"
handle
\"
:
$MB_AK
,
\"
pass
\"
:
$MB_AS
,
\"
floating
\"
:1}}"
body
=
"{
\"
login
\"
:{
\"
handle
\"
:
\"
$MB_AK
\"
,
\"
pass
\"
:
\"
$MB_AS
\"
,
\"
floating
\"
:1}}"
_info
"Getting Floating token..."
_info
"Getting Floating token..."
# body url [needbase64] [POST|PUT|DELETE] [ContentType]
# body url [needbase64] [POST|PUT|DELETE] [ContentType]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment