Closed hldarshana closed 2 years ago
Yes! You can use the ~experimental-login~ login
command since version ~3~ 4. More detailed docs are on their way.
This is a new ~(experimental)~ feature. So please try it out, and all feedback/issue reports are appreciated.
In short, the steps are:
odin login ./path/to/downloaded-file.ionapi
2.1 Add the --update-config
or -c
flag to the above command to automatically update odin.json
. So odin login -c .....
odin serve --multi-tenant --ion-api
Now, requests to e.g /m3api-rest
will be redirected to the configured ION API endpoint in the development proxy.
You can also configure it so that requests will be proxied directly to M3, without the ION API in between. This may be necessary if for instance the M3 API you are using is not accessible through ION API:
odin login --update-config --m3 https://url.to.m3 ./path/to/downloaded-file.ionapi
odin serve --multi-tenant
See:
You should look into the ION API documentation for more detailed instructions on what to do (and what NOT to do). Make sure you are aware of the security implications of authorizing apps like this. But the following is one way to do it:
Are there any open points @hldarshana here? If not close the issue please.
Hi,
Can we use new experimental-login feature to test MIService in local development environment? If so, is there any example (including how to set ionApiConfig and it's path) to refer?
Thank You