Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
Sender Email:
-
HD-Chapter:Security
-
HD-Enabler:KeyRock
Description
Dear FIWARE coach,
we forward you a support request received from a CreatiFI applicant we are
not able to solve.
Please let us know if you need direct contact with the submitter.
Thanks.
*************************************
Hi,
I am trying to get an access token using FIWARE Lab IDM.
I have accounts created and the application is defined.
Everything works fine for authorization code grant.
But when I want to get an access token only using client_id and
client_secret (client credentials grant) I get an internal server error.
See my code below (which I got from the educational videos), I have omitted
my client_id and client_secret of course:
var basic = new Buffer(client_id + ':' + client_secret).toString('base64');
var body = 'grant_type=client_credentials';
var options = {
hostname: 'account.lab.fiware.org',
port: 443,
path: '/oauth2/token',
method: 'POST',
headers:
};
var req = https.request(options, function(res) {
res.setEncoding('utf8');
res.on('data', function(data) {
if(res.statusCode === 200)
else
{ console.log(data); } });
});
req.write(body);
req.end();
And this is the JSON response I get back: {"error": {"message": "An
unexpected error prevented the server from fulfilling your request.",
"code": 500, "title": "Internal Server Error"}}
thxs
*************************************
_______________________________________________
Fiware-creatifi-coaching mailing list
Fiware-creatifi-coaching@lists.fi-ware.org
https://lists.fi-ware.org/listinfo/fiware-creatifi-coaching
[Created via e-mail received from: Andrea Maestrini <amaestrini@create-net.org>]
Issue Links
- relates to
-
HELC-872 FIWARE.Request.Coach.CreatiFI.FIWARE Lab IDM issue
- Closed
Activity
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
12d 18h 16m | 1 | Manuel Escriche | 13/Oct/15 12:03 PM | |||||
|
2s | 1 | Manuel Escriche | 13/Oct/15 12:03 PM | |||||
|
1s | 1 | Manuel Escriche | 13/Oct/15 12:03 PM |
Fix Version/s | 2021 [ 12600 ] |
HD-Enabler | KeyRock [ 10889 ] | |
HD-Chapter | Security [ 10841 ] |
Sender Email | amaestrini@create-net.org |
Summary | FIWARE.Request.Lab.Security.IDM-KeyRock.IDM issue | FIWARE.Request.Tech.Security.IDM-KeyRock.IDM issue |
Summary | FIWARE.Request.Lab.[Fiware-creatifi-coaching] [CreatiFI Benelux Hub] FIWARE Lab IDM issue | FIWARE.Request.Lab.Security.IDM-KeyRock.IDM issue |
Component/s | FIWARE-TECH-HELP [ 10278 ] | |
Component/s | X_MIGRATION [ 11403 ] |
Assignee | Manuel Escriche [ backlogmanager ] | Alvaro Alonso [ aalonsog ] |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Original time span = 10 days, 7:50:31