Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TI API: 3Legs problem for optional parameter #246

Open
FabrizioMoggio opened this issue May 23, 2024 · 4 comments
Open

TI API: 3Legs problem for optional parameter #246

FabrizioMoggio opened this issue May 23, 2024 · 4 comments
Labels
correction Suggesting corrections of API specification or indicating misalignment with API design guidelines Fixed Traffic Influence API

Comments

@FabrizioMoggio
Copy link
Collaborator

FabrizioMoggio commented May 23, 2024

Problem description
The TI API adopted 3Legs authentication because it can provide back some information about the local of a device as a feedback of the traffic being influences in a certain zone or region. Anyway the device information is an option, the TI API can also be invoked in a generic way effecting all the connection toward an application

Expected behavior
3legs is expected when a device info is passed and it is not expected when a device is not provided as input. Currently Device is an optional parameter for the /traffic-influences POST method. The "security schema" for that method is "openId" while actually if the Device parameter is not used it should just be client credential. Is there a way to manage this situation with just one operation?

Alternative solution
this is solved if we create two operations:

  1. POST with openId to create a TI Resource for a Device
  2. another POST with client/credential to create a generic TI Resource for any Device
@FabrizioMoggio FabrizioMoggio added the correction Suggesting corrections of API specification or indicating misalignment with API design guidelines label May 23, 2024
@FabrizioMoggio FabrizioMoggio changed the title TI API: 3Legs for optional parameter TI API: 3Legs problem for optional parameter Jun 5, 2024
@FabrizioMoggio
Copy link
Collaborator Author

Also the Patch method has the same problem. When no device is used no Consent management can be performed. So also two PATCH methods must be used, one with Client/Credential and one with OpenId

@FabrizioMoggio
Copy link
Collaborator Author

Asked to Commonalities: camaraproject/Commonalities#245

@FabrizioMoggio
Copy link
Collaborator Author

Asked in ICM: camaraproject/IdentityAndConsentManagement#184

Conclusion: two operations:

  • POST with openId to create a TI Resource for a Device
  • another POST with client/credential to create a generic TI Resource for any Device

FabrizioMoggio added a commit to FabrizioMoggio/EdgeCloud that referenced this issue Nov 4, 2024
user mobility problem: camaraproject#314
3Legs problem for optional parameter: camaraproject#246
@FabrizioMoggio
Copy link
Collaborator Author

Fixed with: #315

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
correction Suggesting corrections of API specification or indicating misalignment with API design guidelines Fixed Traffic Influence API
Projects
None yet
Development

No branches or pull requests

1 participant