API uses own authorization. How can I use my API through microgateway using my token ?

Not applicable
 
0 7 538
7 REPLIES 7

Can you elaborate your question a bit more pls?

In mean time I understand it as you have your own auth and you don't want to use microgateway for authorization. In that case you can simply turn off authorization by removing 'oauth' plugin from agent/config/default.yaml .

Not applicable

Thank you for your answer ...

agent/config/default.yaml

=======================

plugins:

dir: ../plugins

sequence:

headers:

/..../

oauth:

allowNoAuthorization: true

allowInvalidAuthorization: true

================

AssertionError: config.edgemicro.plugins.sequence is not defined

If I remove "plugins:" section - error starting edge micro MTQ1MzEwODcwMzQ5NQ [Error: plugins not configured]

So ....

I tied to change the configuration ....

=======================

plugins:

dir: ../plugins

sequence:

- analytics

headers:

/..../

oauth:

allowNoAuthorization: true

allowInvalidAuthorization: true

================

It works ....

Not applicable

So ... For now ... I can request information from my API but I can't see any analytic information for my requests. I can see just "adgemicro-auth" activity.

There are "adgemicro_oauth" (my API authorization) & "edgemicro_service" (my API base path) API proxy. I can use it but can't get analytic information.

Good to see that you figured it out. Congratulations. 🙂

Now for Analytics not showing up, we introduced a regression on our Dev aka Free offering which we are working on to fix. If you have access to paid org, it should work even now. Please watch this space for update when Analytics get fixed.

Not applicable

Is it fixed?

Not yet. Hoping for something towards mid Feb. Sorry for the delay. No pressure @Amit Mehta @Peter Johnson

Not applicable

Thank you ....