fiware-idm icon indicating copy to clipboard operation
fiware-idm copied to clipboard

to get Access_token the API consults the Iot_Agents

Open joansrios opened this issue 6 years ago • 2 comments

why to get the access token, the API only searchs into the Iot_agents if these don't have permissions into the application?

me: me

Iot_Agent: iot

when i try to use any authorization method with an user credentials, always the result is 500. ¿which is the purpose to limit these access_tokens to the Iot Agents?

joansrios avatar Nov 21 '18 12:11 joansrios

When you request an access token via Resource Owner Password Credentials Grant, Keyrock search either in Iot Agents and User Table because it doesn't know in which table is the entity who is requesting a token. You can see in your images that these two queries to the database are performed.

Probably you need to clone the latest version of Keyrock in which are solved somo problems related to user authentication and run the ñatest migrations.

apozohue10 avatar Nov 21 '18 14:11 apozohue10

@apozohue10 do you have the Keyrock 7.5.0 API documentation?

The Apiary web page presents discontinued commands that return internal server error 500

error

joansrios avatar Nov 26 '18 02:11 joansrios