Good day Team - I'm using cloud. AND the client i...
# ory-network
w
Good day Team - I'm using cloud. AND the client is intended to be mobile app therefore I'm using the Insomnia.rest... Which maybe acting as a Browser... @magnificent-energy-493 Thank you! I'll try the
/browser
endpoint.
Just tried it using the
.../browser
and get the same error. Have checked cloud configs - they match the docs. Wondering what I'm doing wrong.
m
Hello @wooden-monitor-66999 you are right Insomnia is a browser under the hood. So that is probably the cause of the error. Can you please use something like cUrl for the register&login and see if it works then? 🙏
👍 1
w
GM - been away for couple of days. Just checked via curl using
/api
and am still getting the same error:
Copy code
curl --request GET \
  --url 'https://<slug>.<http://oryapis.com/self-service/login/api?aal=aal2|oryapis.com/self-service/login/api?aal=aal2>'
{"error":{"id":"session_aal1_required","code":401,"status":"Unauthorized","request":"fe60d9cf-d479-956c-8bac-272c1e66fa37","reason":"You can not requested a higher AAL (AAL2/AAL3) without an active session.","message":"aal2 and aal3 can only be requested if a session exists already"}}
Should I be: 1. Invoking
/login/api
to get the flow WITHOUT
aal
2. Invoking
/login
to authenticate and then
3. Invoking
/login/api?aal=all2
??? this part doesn't make sense to me... :(
p
Hi @wooden-monitor-66999 Yes you need the user to have already logged in when you are doing 2FA. 1. Log in with credentials 2. Check session with
/whoami
3. When
/whoami
returns an error, invoke login again with
aal2
4. Submit 2FA
w
Thank you @proud-plumber-24205 - how can I help updating the docs with these steps?
p
I believe @wonderful-lamp-2357 could assist you with this. He is on holiday atm but can help you next week 🙂