-
Notifications
You must be signed in to change notification settings - Fork 32
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
No clear guideline in API documentation about Authcode flow vs CIBA flow #219
Comments
Have you read this ICM document, where it says:
and
Which is basically what you are saying. Of course, the text in CAMARA documents can always be improved. In practise, you will not know which authentication schemes are supported until you read the API provider's But specifically for SIM Swap, I'm curious to know who is using Authorisation Code Flow for this API? What is the use case? |
Yes, I have read this statement. |
Improved documentation proposals are always welcome within the ICM working group. CAMARA is an open-source project. But this documentation will remain guidance. CAMARA cannot force API providers to support a particular use case or authorisation flow. The API consumer will only find out what is supported when they check the API provider's I'm still curious as to who would support authorisation code flow for SIM Swap, and why. |
Actually, I am not sure if it is final implementation from a CSP, but I see an example of Auth code grant type for SIM swap API: https://developer.orange.com/apis/camara-sim-swap-france/getting-started I guess that there must be a reason or use case behind this. |
Hmmm... so Orange require that the user of the mobile device give their explicit consent before the API consumer can call the SIM Swap API? If I were a fraudster that had successfully taken over somebody else's SIM, I suspect I would not give that consent. I don't think the author of that page has fully understood the SIM Swap use case. |
If we are almost certain that SIM Swap API will require CIBA flow in case of 3-legged flow, I would request modifying API documentation to mention this. This would help in reducing different implementation approaches. |
The problem is that this ultimately might depend upon regulation, over which CAMARA have no control. Some regulators might not require any end user consent at all (so CAMARA cannot mandate for regulations in all countries, only provide options for each possibility. |
Problem description
There is no clear guideline in API documentation about Authcode flow vs CIBA flow.
Current statement in SIM SWAP API https://github.com/camaraproject/SimSwap/blob/main/code/API_definitions/sim-swap.yaml, "
_# Authorization and authentication
Similar issue is with many of existing CAMARA APIs.
Expected action
I think there must be an additional line in this statement," In case of 3-legged flow, if application is directly consumed by CSP subscriber then Auth code flow must be used. If application is not consumed directly by CSP subscriber, then CIBA flow must be used. CSP must support both grant type and provide application developer guidance to implement 3-legged oAuth 2.0 grant type based on use case."
Additional context
ASPs/Aggregators may face challenge that Operator A in a country X is exposing SIM swap using CIBA and Operator B in same country X is exposing SIM Swap using Auth code grant type. It must be dependent on use case and application requirement.
The text was updated successfully, but these errors were encountered: