How to secure an HTTP Service in IBM ACE using OAuth JWT ???

How to secure an HTTP Service in IBM ACE using OAuth JWT ???

In my last post of Securing a Web Application using Basic Auth leveraging the IBM ACE Policies, I was asked about securing Application with OAuth. Although API Managers like IBM API Connect, 谷歌 APIGEE, Kong Inc. , Tyk etc. majorly handles the security of the APIs, it is worth learning!


?? How did this idea land:

Thoroughly explored MuleSoft Anypoint Platform with policies, especially the JWT Policy. Big thanks to Jitendra Bafna ???? Authored MuleSoft Platform Architect's Guide , your videos helped me understand majority of the concepts. Video Links: ??Enforcing MuleSoft JWT Validation Policy using API Manager API ?? OAuth2 : Authorize the MuleSoft API Using OKTA

The implementation relies on Java Nimbus-Jose-JWT. ?? Documentation ?? Repository

Helpful resource for JWT overview: ?? Document by Aram Tchekrekjian


? Policy Builder (WebGUI):

The JWT Policy is built using UserDefined Policy. Creating/editing UserDefined Policies are error prone. Hence created a small WebUI (design inspired from JWT Policy on MuleSoft Anypoint Platform, themed on IBM App Connect Enterprise Web UI)

?? Access the Policy Builder WebGUI here!!


?? Things I did:

  • Created Policy with customized key-value pairs for configuring the validation
  • Saved (multiple) policies in a Policy Project
  • Created a subflow which uses JCN (library used - Nimbus-JOSE-JWT)
  • The subflow is created as a part of Library for reusability
  • Created a JWT Provider (wanted better grip on JWT creation)
  • Created a JWT Testing app using the subflow mentioned above
  • Did manual testing and wrote automated testing script on Postman
  • Detailed documentation for the feature with test results


? Success! The service now requires a valid signed JWT.

?? Code is available on my ?? GitHub Repo


? Priya Shaw , Aakanksha Gupta , Sneha Bobade , Gireesh Kolli , Anjali Kumari , AVIJIT MONDAL , Avinash Arepaka , Yasharah Mirza , Deepika Ramesh Babu , Shivam G - you might find this interesting!


Tagging #Leaders for wider reach:

Karen Broughton-Mabbitt Ben Thompson Matt Roberts Sanjay Nagchowdhury Richard Huegill Girish Kumar Maganti Nagaraja Kalyan Chakravarthy Nemani Sandip Kulkarni Saravanakumar Swajai Purush Yeshwant Patodia Prashanth Sonnad Math (Y) Gurbachan Singh ANANDA JOARDAR ANIruddha Mukherjee Sravan Lingam


I hope MuleSoft Community will not hate me for taking references from their Anypoint Portal or documentation ??


?? Complete Documentation of JWT Implementation and Testing



#apisecurity?#oauth2 #jwt #ibm #appconnect?#appconnectenterprises?#IntegrationBus #mulesoft #security?#leaders?#developers

Jitendra Bafna ???? Authored MuleSoft Platform Architect's Guide

MuleSoft Practice Head and Architect | MuleSoft Ambassador | TOGAF 9 Certified | MuleSoft Meetup Leader and Speaker | 12x Salesforce Certified and 10x Superbadges | MuleSoft Delivery Champion | Trailhead Ranger | MBA

4 个月

Thanks for sharing and mentioning my name.

回复
Aram Tchekrekjian

Microsoft MVP | Daily tips to get better in .NET and C# | codingsonata.com | Technical Product Head at Aramex

1 年

If anyone is interested to learn how to implement JWT Authentication in ASP .NET Core Web API in .NET 7, you can follow my tutorial which also includes an implementation for refreshing the tokens. Feel free to let me know if you have any comment. https://codingsonata.com/apply-jwt-access-tokens-and-refresh-tokens-in-asp-net-core-web-api/

Qusay Salameh

Digital Transformation Specialist | Digital Development and Automation Manager | Systems Integration and Architecture Consultant

1 年

Great article and helpful one as i am start working on the same to implement the JWT, thanks for sharing

Aram Tchekrekjian

Microsoft MVP | Daily tips to get better in .NET and C# | codingsonata.com | Technical Product Head at Aramex

1 年

Great article Dipanjan, and thanks for the mention.

要查看或添加评论,请登录

社区洞察

其他会员也浏览了