ging / fiware-idm

OAuth 2.0-based authentication of users and devices, user profile management, Single Sign-On (SSO) and Identity Federation across multiple administration domains.
https://keyrock-fiware.github.io
MIT License
36 stars 81 forks source link

Application certificates are not created when enabling openid using API. #262

Closed fisuda closed 2 years ago

fisuda commented 2 years ago

Application certificates are not created when enabling openid using API.

Request:

curl -s http://localhost:3000/v1/applications \
-H "X-Auth-token: ${TOKEN}" \
--header "Content-Type: application/json" \
--data '{
  "application": {
    "name": "test",
    "description": "test",
    "grant_type": ["client_credentials", "password", "implicit", "authorization_code", "refresh_token"],
    "scope": "openid",
    "token_types": ["jwt"],
    "redirect_uri": "http://localhost"
  }
}'

Response:

{
  "application": {
    "id": "1d27f193-2b3c-4b69-b1d9-c2968f0f4f22",
    "secret": "7141eb0f-0de6-434e-8c6d-ad2f1d3369d9",
    "image": "default",
    "jwt_secret": "535f970e0a9375c7",
    "name": "test",
    "description": "test",
    "grant_type": "client_credentials,password,authorization_code,implicit,refresh_token,hybrid",
    "scope": "openid",
    "token_types": "jwt,bearer",
    "redirect_uri": "http://localhost",
    "response_type": "code,token,id_token"
  }
}

Application certificate files are not found.

$ ls -l ./certs/applications/
total 0