I am new to this apigee so i need your suggestions to make an API/webservice. Please help me on this.I have few questions here about basic authentication.Please check the following
How to use basic authentication?
I need to prompt the screen for providing the username and password?
Will there be any possibility to use basic authentication without using any of the javascript,java and node.js?
What are the policies required to work basic authentication ?
Could you please help me to understand and learn about this.
Welcome to Apigee Community. Great Questions, Please find details below.
How to use basic authentication ?
Apigee provides many features in Apigee Edge that helps you work with existing APIs & build new APIs.Working with Basic Authentication is also one among them & certain functionality is out of the box. Basic Authentication policy falls under same.
How Apigee can help you related to Basic Authentications ?
It can help you secure open API with Basic Authentication.
It can help you construct Basic Authentication header for target API where on API Proxy side you can use better security like OAuth.
What does Basic Authetication Policy does ?
Extract username & password from given authorization header in request.
Construct new authorization header given username and password in request & send authorization header to target API.
I need to prompt the screen for providing the username and password ?
Very Interesting requirement, Yes, You can implement this in Apigee. See an excellent article that explains how browser prompts work here .
You need to use RaiseFault policy in proxy that check for Authorization header and sends back 401 with header www-authenticate basic.
I am very new to Apigee. Use to follow your video on Apigee portal. It’s very short and effective. Thanks for those videos.
Try to accomplish one use case via Apigee. Let say Our target system doesn’t require any username/password or any token to access their API. But I want to create a reverse proxy on their API with a basic credential or token based auth. I want to generate username/password or token on Edge and save it somewhere. Once a client calls my reverse proxy with username/password, Edge will validate it with generated credential and process to target system accordingly.
I am very new to Apigee. Just try to accomplish some use case on Apigee.
Let say I have a target system which doesn’t require username/ password or any other authentication method but I want to implement authentication on my reserve proxy. Want to generate some token or basic credential on Edge and store somewhere. Once a client calls my reverse proxy with the credential, Apigee will validate with the generated token or username/password and process to the target application accordingly.