Securing REST API With OAuth2.0 or Azure Active Directory

413
April 04, 2017, at 7:42 PM

i have a REST Api, which i call within from my web application in order to get the result, now i have a client which asks for my API only, but i can't expose my API without any security, Apparently i have to use it with my application as well, so far the API is not secured, but i want my client to consume my API with valid credentials, whether OAuth 2.0, JWT , Certificate, or some extra mechanism,How could i achieve this objective, any working example in java with azure will do, and should not hamper my pre-existing webapp which is using the API for its own purpose. Thanks well in advance.

Answer 1

It is easy to protect the web API using the Azure Active Directory. Microsoft provide lots of code samples to help developer to get started.

You can refer the links below about the code samples for your scenario:

Azure Active Directory Code Samples

Rent Charter Buses Company
READ ALSO
python create a file in a directory errors

python create a file in a directory errors

write a python program to create ahtml file in a directory, the directory can be created correctly, use function open to create this

667
How can make Bolt take each line for processing ?

How can make Bolt take each line for processing ?

I need some help from you in this problemI read that spout is responsible for reading data or preparing it for processing in Bolt

372
Python Error: No module named mrjob.job

Python Error: No module named mrjob.job

I am running the following simple script from the book and getting the following error

1218
Convert to Excel with Django

Convert to Excel with Django

I want to be able to convert some Django model to a Excel fileMy view is as follows:

526