Fix issues to make the linter happy
Signed-off-by: Anthony Brandelli <abrandel@cisco.com>
This commit is contained in:
parent
7c335e9337
commit
5fe1647fc7
@ -453,11 +453,13 @@ func setupServer(tok map[string]interface{}, idTokenDesired bool) (*httptest.Ser
|
|||||||
json.NewEncoder(w).Encode(&map[string]string{
|
json.NewEncoder(w).Encode(&map[string]string{
|
||||||
"access_token": token,
|
"access_token": token,
|
||||||
"id_token": token,
|
"id_token": token,
|
||||||
"token_type": "Bearer"})
|
"token_type": "Bearer",
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
json.NewEncoder(w).Encode(&map[string]string{
|
json.NewEncoder(w).Encode(&map[string]string{
|
||||||
"access_token": token,
|
"access_token": token,
|
||||||
"token_type": "Bearer"})
|
"token_type": "Bearer",
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user